Can we able to copy interactive session’s QTEMP data into SBMJOB’s QTEMP while submitting the batch job.

695 pts.
Tags:
AS400 Job Status
Hi All, Can we able to access Data Area available in interactive session's QTEMP library while submitting the batch job using SBMJOB command from interactive session.

For example i want to submit JOBA from interactive session, now there is one data area (A) or LDA is available in interactive session's QTEMP, so now can i able to copy this data area (A) or LDA available in interactive session's QTEMP into SBMJOB QTEMP before submitting the job.

and one more question is can we able to access interactive session's QTEMP library data after submitting the Job (SBMJOB).

Thanks,

Mohan K

ASKED: March 9, 2010  5:39 AM
UPDATED: March 11, 2010  12:19 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

This has been asked multiple times, here’s a good link that provides a solid explanation:

http://itknowledgeexchange.techtarget.com/itanswers/how-to-access-qtemp-files-in-batch-programs/

==========================================================

The *LDA is easy as these two commands can show:<pre>
CHGDTAARA DTAARA(*LDA) VALUE(‘Here”s interactive data’)
SBMJOB CMD(DSPDTAARA DTAARA(*LDA) OUTPUT(*PRINT))</pre>
The submitted job will create a spooled file that shows the data was copied from the interactive job’s *LDA to the batch job’s *LDA. The two data areas will be the same at the time SBMJOB executes. Any changes to either *LDA after that will not show up in the other *LDA.

There is no way to access the interactive QTEMP from the batch job unless some kind of inter-program communication is set up. There’s no way to be sure that the interactive QTEMP will even still exist at the time the batch job starts.

Tom

Discuss This Question:  

 
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

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