sourceline() Function Returns Blanks in AOF Rules OPS/MVS Event Management & Automation
search cancel

sourceline() Function Returns Blanks in AOF Rules OPS/MVS Event Management & Automation

book

Article ID: 452624

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

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.

Environment

OPS/MVS Event Management & Automation 14.0.12

Resolution

This issue is fixed in APAR LT21437.

Fixed in release 14.0.12 (with APAR LT21437 applied) and higher.

Additional Information

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