I used strqmqry to select records from a database file. i provide selection criteria. sometimes the query returns with no records. if no records are returned i want to bypass the display and end the program. if records are returned i want to bypass any display and call another program. how can i do this without creating an outfile and testing whether the file has any records?
Software/Hardware used:
ASKED:
July 23, 2009 3:54 PM
UPDATED:
July 24, 2009 6:52 PM
I actually used rtvmbrd to determine number of records and trapped qwm2204, 2701 & 1102 to allow the submitted job to end normally.