John,

Try specifying VOLUME or UNIT parameter

http://dmcritchie.mvps.org/rexx01txt/receive.txt

 
Kolusu

IBM Mainframe Discussion List <[email protected]> wrote on 
10/09/2014 08:27:36 AM:

> From: John Compton <[email protected]>
> To: [email protected]
> Date: 10/09/2014 08:39 AM
> Subject: TSO in batch, RECEIVE storage class
> Sent by: IBM Mainframe Discussion List <[email protected]>
> 
> 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.
> 
> I tried a bare 'ALLOC' command on its own but even this results in the
> specified file being created in the 'temporary' class, whether a 
STORCLAS
> clause is provided or not.
> 
> 
> 
> Example input:
> 
> //(step) EXEC PGM=IKJEFT01
> 
> //SYSPRINT DD   SYSOUT=*
> 
> //SYSTSPRT DD   SYSOUT=*
> 
> //SYSIN    DD   *
> 
> //SYSTSIN  DD   *
> 
> ALLOC DATASET('<permanent file name>') NEW SPACE(1,1) DIR(1) TRACKS 
CATALOG
> STORCLAS(<permanent files class>)
> 
> 
> 
> Extracted from the resulting JESYSMSG output section:
> 
> IGD101I SMS ALLOCATED TO DDNAME (SYS00002)
> 
>         DSN (<permanent file name>                   )
> 
>         STORCLAS (<temporary files class>) MGMTCLAS (        ) DATACLAS
> (<normal files class>)
> 
>         VOL SER NOS= volser
> 
> 
> 
> Am I right in thinking that a new file such a this is dynalloc'd with a
> temporary style name ('SYSyyddd.Thhmmss....') and then renamed when the
> dynalloc is seen to be successful? If so, is there any way to change 
this
> behaviour?
> 
> Any help would be much appreciated.
> 
> 
> 
> Regards
> 
> John
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
> 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to