Joined: 06 Jun 2008 Posts: 8411 Location: Dubuque, Iowa, USA
I want to trap the jcl error message or maxcc in rexx
Terminology is critical in IT, where similar terms may mean very different things. And the term "maxcc" is used on a mainframe when dealing with IDCAMS -- AND ONLY IDCAMS. With JCL, you have step condition codes but those are not "maxcc" since they can come from many different programs other than IDCAMS.
Just a suggestion. We can access ST panel through ISFEXEC. Using ISFBROWSE, we can traverse the job listing.
ADDRESS SDSF "ISFEXEC ST"
IF LRC<>0 THEN EXIT 12
DO IX=1 TO JNAME.0
IF JNAME.IX = "BPV081RJ" THEN
ADDRESS SDSF "ISFBROWSE ST TOKEN('"TOKEN.IX"')"
DO JX=1 TO ISFLINE.0
While going through the listing, we can look for IEF142I messages and from the same we can parse the condition codes.