Add a line after each RECEIVE command specifying the new DSN (if you need it)
and STORCLAS (or UNIT) you want the received file to use.
//RECEIVE EXEC PGM=IKJEFT01
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
RECEIVE INDATASET('TSOUSER.XMIT.FILE')
DA('TSOUSER.RECEIVE.FILE') STORCLAS(MYCLASS)
//*
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf
Of John Compton
Sent: Thursday, October 09, 2014 11:28 AM
To: [email protected]
Subject: TSO in batch, RECEIVE storage class
I'm trying to use TSO in a batch job to control a RECEIVE of a file that is
created by an XMIT command.
The RECEIVE works ok, except that the restored output file is always being
created in my SMS 'temporary files' storage class.
I've tried everything I can think of to work around this, but the only
method that works is to pre-allocate the file with a DD statement in the
supporting JCL - which is something I don 't want to do if it can be
avoided.
--
This message and any attachments are intended only for the use of the addressee
and may contain information that is privileged and confidential. If the reader
of the message is not the intended recipient or an authorized representative of
the intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication
in error, please notify us immediately by e-mail and delete the message and any
attachments from your system.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN