Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Qtemp fil efrom INT to BATCH

Status
Not open for further replies.

Oche

Programmer
Sep 14, 2007
11
US
Hello,

We created a label program used by several different manufacturers. The program creates a file within qtemp. The program then calls a CL to email the file information to an email address. All this currently runs in INT. We would like to move it into BATCH.

My question is, when the CL is submitted into BATCH, does the qtemp file go with it? Does it stay within the user session?

I need the user to have the ability to submit the batch with the qtemp file and have the ability to do another run with different information within the qtemp that can also be sumbitted.

Thanks,
The Oche
 
Each job has its own QTEMP library. When the interative job submits a job to batch, that new batch job has its own QTEMP. The file in the interactive QTEMP library does not go along with the submitted job.

What type of information is stored in the file in QTEMP? Could it be stored in the local data area (*LDA)? The *LDA is copied to the batch job.

Another option is to move the file in QTEMP to a regular library and make it a multi-member file. Create a new member in the interactive job and pass the member name to the batch job. The batch job would use the data in the member and remove it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top