Hello,
The open() api documentation, located here, details that upon error it returns -1 but it also populates "errno" with a specific error ID.
I am within STRDBG via;
1: STRSRVJOB JOB(700475/OVERNIGHT/MYJOB)
2: STRDBG PGM(MYPROG) UPDPROD(*YES) OPMSRC(*NO) SRVPGM(SVRPGM1)
3: Set break at point MYPROG calls internal "BIF" (contained within SVRPGM1)
4: Use Shift+F10 to step into SVRPGM
5: Set break point in SVRPGM to after the open() api is used
At this point I can see the return value from the open() api is -1, so I tried eval errno and it stated the value didn't exist
Can anyone advise how I view "errno" from within STRDBG? Google isn't being very helpful.
Many Thanks,
Ryan
The open() api documentation, located here, details that upon error it returns -1 but it also populates "errno" with a specific error ID.
I am within STRDBG via;
1: STRSRVJOB JOB(700475/OVERNIGHT/MYJOB)
2: STRDBG PGM(MYPROG) UPDPROD(*YES) OPMSRC(*NO) SRVPGM(SVRPGM1)
3: Set break at point MYPROG calls internal "BIF" (contained within SVRPGM1)
4: Use Shift+F10 to step into SVRPGM
5: Set break point in SVRPGM to after the open() api is used
At this point I can see the return value from the open() api is -1, so I tried eval errno and it stated the value didn't exist
Can anyone advise how I view "errno" from within STRDBG? Google isn't being very helpful.
Many Thanks,
Ryan
Comment