In OPS/MVS Event Management & Automation, users may encounter an issue where the sourceline(n) function returns blanks for specific lines while the sourceline() function correctly returns the total number of lines. This issue affects AOF rules and has been identified as a regression introduced by LU19585.
OPS/MVS Event Management & Automation 14.0.12
This issue is fixed in APAR LT21437.
Fixed in release 14.0.12 (with APAR LT21437 applied) and higher.
Can be replicated by running the following:
)MSG NOMSG123I /* This rule examines if the sourceline() function is working ok */ )INIT Parse Source env calltype program . lines = sourceline() Say 'Program' program 'contains' lines 'lines' rc = opsprm('SHOW','AOFSOURCETEXT') Parse Pull line Say 'AOFSOURCETEXT parm value:' line Say 'First 10 lines:' last = min(10,sourceline()) Do i = 1 To last Say i sourceline(i) End i Return