Batch Job Procedure

1420 pts.
Tags:
AS/400
CLLE
Hi all, i have a CL program C1 which internally have a CALL to an RPG program R1 which reads a file F1 and writes to file F2. My CL program C1 also using SBMJOB command to CALL another CL program C2 which was designed such a way that it will submit 5 jobs(with all the neccesary information given). C2 also have a call to RPG program R1. I have created the necessary objects in My Qtemp as well as My Test environment Library T1 and my library list contains Qtemp in the top most position of the list. When i submit C1 using SUBMIT JOB command like this... CALL PGM(QTemp/C1). JOB NAME : C1 JOB DESC: *** --------------- --------------- . then after execution of the JOB it is writing data only into the file F2 in T1 library but not to the file in QTemp. Can any one explain me why it does so?.. Thanks!

Software/Hardware used:
AS400, RPG 400,CLP/CLLE.

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta

    You cannot have a SBMJOB command like (CALL PGM(QTemp/C1)).

    There is nothing in QTEMP when the submitted job starts, so there is no program named C1 in QTEMP. The QTEMP library is always empty at the start of every job.

    Tom

    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following