695 pts.
 Can we able to copy interactive session’s QTEMP data into SBMJOB’s QTEMP while submitting the batch job.
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



Software/Hardware used:
ASKED: March 9, 2010  5:39 AM
UPDATED: March 11, 2010  12:19 AM

Answer Wiki:
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
Last Wiki Answer Submitted:  March 11, 2010  12:19 am  by  Whatis23   5,665 pts.
All Answer Wiki Contributors:  Whatis23   5,665 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _