I have a never-ending job running called JGETORDERS. I need to ENDJOB it at the end of each day. When I run ENDJOB, there is only one JGETORDERS job active, but OS/400 asks me to select from a list of previously completed jobs of the same name. How can I ENDJOB a job by jobname, when completed jobs exist with the same name? Using messages? I know I can save the job number in a data area, but there must be a method to accomplish this without a program change! I would think that I could ENDJOB JGETORDERS *ACTIVE, but no such option. Any ideas??? Thanks in advance!

Reply With Quote