IMHO, positive checks (*EQ) are better, and easier to read, than negative checks (*NE). Also, this positively ends your program after submitting the job (assuming that there is no processing going on between the ENDPGM label and the ENDPGM command. However, you might try putting a RCLRSC in-between the ENDPGM label and the ENDPGM command.

]]>By: pdraebelhttp://itknowledgeexchange.techtarget.com/itanswers/self-submitting-cl-pgm-doesnt-release-screen/#comment-64201
Thu, 04 Jun 2009 09:06:06 +0000#comment-64201I suspect some file locking in Your RPG subfile program to be the culprit. Check if the file in RPG is defined as U(pdate). Maybe the last record displayed on the subfile is causing the lock.
]]>By: mccstevenhttp://itknowledgeexchange.techtarget.com/itanswers/self-submitting-cl-pgm-doesnt-release-screen/#comment-64163
Tue, 02 Jun 2009 19:08:13 +0000#comment-64163the user takes menu option which calls interactively…

from your question, I’m supposing something like the following outline.
or is the subfile program doing the SBMJOB?

There is no bug in the operating system. This isn’t a PC.

– – – – – – – – – – –

PGM

start:
CALL subfile pgm

IF return = option 99
SBMJOB Call ABCDE JOBD(*JOBD) blah blah
endif

IF return = option 45
blah blah
endif

If return = Option F03
goto exit
endif

GOTO start

exit:

endpgm

]]>By: mccstevenhttp://itknowledgeexchange.techtarget.com/itanswers/self-submitting-cl-pgm-doesnt-release-screen/#comment-64089
Fri, 29 May 2009 16:15:00 +0000#comment-64089To answer Philip, thanks for your answer. I have checked the code itself and the calling methods, debug shows the RPG stepping through to *INLR.

To Gilly, thank you also, It is a non-ILE cl program, I have renamed the program, compiled it to create a new object, and still had the screen hang up during the batch processing. We were told to get out of the system for upgrades until 1 p.m. so i won’t be able to post the code until 1:30ish.

Thank you both. I will upload the code about 1.5 hours from now. I really think IBM has an OS error here, I will post the question to IBM this afternoon also.

If it’s a non-ILE CL program maybe it’s an idea to do a RTVCLSRC to make sure the source matches the object. Quite often programmers (myself included) code an interactive call and a submitted call in their program to help while debugging. Maybe the interactive call is still in the program?

Are you sure that a job gets submitted? Try changing the logging level of your job and check the joblog.