IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Receive (unload) a XMIT file to a PDS on Mainframe.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
manoopatil

New User


Joined: 07 Dec 2003
Posts: 56
Location: Montreal

PostPosted: Mon Mar 16, 2009 10:36 pm
Reply with quote

Hi,

I need to receive (unload) a XMIT file to a PDS on Mainframe. Right now I do it using the following command

Code:
TSO RECEIVE INDATASET('TSTQ.SKELS')


on prompt I enter following parameter

Code:
DA('TSBQ.SKELS.PDS') UNIT(TSO)


That gives me all the members unloaded to my PDS.

However I want to do this processing using a JCL because I need to unload multiple XMIT files to JCL.

Can someone suggest how to perform the above mentioned functionality thru the JCL.

Thank you
Manohar
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Mar 16, 2009 10:43 pm
Reply with quote

What program will you be executing ?
Back to top
View user's profile Send private message
manoopatil

New User


Joined: 07 Dec 2003
Posts: 56
Location: Montreal

PostPosted: Mon Mar 16, 2009 11:46 pm
Reply with quote

I can execute IEBCOPY or IKJEFT01

Thank you,
Manohar
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Mar 18, 2009 4:30 am
Reply with quote

Hi,

I'm not sure if this is what you are after, but this is a RECEIVE job that I use

Code:
//ALLOCATE EXEC PGM=IEFBR14                                             
//TO#FILE  DD DSN=receiving-pds,                                       
//            DISP=(,CATLG,DELETE),                                     
//            UNIT=SYSDA,                                               
//            SPACE=(TRK,(175,25,250)),                           
//            DCB=(RECFM=FB,LRECL=080)                                 
//**********************************************************************
//RECEIVE  EXEC PGM=IKJEFT01,                                           
//            REGION=5000K,                                             
//            DYNAMNBR=30                                               
//FROMFILE DD DSN=input-dsname,                                         
//            DISP=SHR                                                 
//SYSPRINT DD  SYSOUT=*                                                 
//SYSTSPRT DD SYSOUT=*                                                 
//SYSTSIN  DD  *                                                       
 RECEIVE   +                                                           
 INDDNAME(FROMFILE)                                                     
 DATASET('receiving-pds')                                               
/*



Gerry
Back to top
View user's profile Send private message
manoopatil

New User


Joined: 07 Dec 2003
Posts: 56
Location: Montreal

PostPosted: Wed Mar 18, 2009 7:11 pm
Reply with quote

Hey Gerry, I was exactly after this one. Thank you for you help.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Mar 19, 2009 3:05 am
Reply with quote

Hi,

I'm glad it helped.


Gerry
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top