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

Moving files across LPARS through Shared volume


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

New User


Joined: 10 Dec 2012
Posts: 20
Location: Australia

PostPosted: Wed Jun 26, 2013 10:32 am
Reply with quote

Hi,

I have a requirement to transfer files from one LPAR (GSYS) to another LPAR (TSYS) . We have got a volume VOL001 which is shared between TSYS and GSYS. This volume is a non-SMS managed.

The requirement is the catalogued files (Always AB will be the HLQ - Sequential files,PDS, VSAM,etc,.) which will be created by executing in the jobs in GSYS LPAR, need to be copied to VOL001, catalog in VOL001 and then delete in GSYS LPAR.
To do this I used the below JCL, but I didn't get the required output. The datasets get moved to other volume but not the one that I specify.

Please help me in identifying the issue and correcting it. When I checked the job output, I don't see any warning and error messages.

Code:
//COPY     EXEC PGM=ADRDSSU,PARM=('UTILMSG=YES')               
//SYSPRINT  DD  SYSOUT=*                                       
//SYSIN     DD  *                                             
   COPY DATASET(INCLUDE(AB.**)) -                             
   OUTDYNAM(VOL001)    /* ALLOC VOL VOL001 DYNAMICALLY    */ -
   DELETE CATALOG FORCE -                                     
   TGTALLOC(SOURCE)                                           
/*       
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Jun 26, 2013 11:44 am
Reply with quote

You need to use a special STORCLAS to create NON SMS managed datasets.

This is site specific, so go ask your storage bods.
Back to top
View user's profile Send private message
Bharath RajaramSridharan

New User


Joined: 10 Dec 2012
Posts: 20
Location: Australia

PostPosted: Wed Jun 26, 2013 2:20 pm
Reply with quote

Hi,

Used the below job to complete the requirement.

Code:
//COPY   EXEC PGM=ADRDSSU,PARM=('UTILMSG=YES')
//SYSPRINT DD  SYSOUT=*                                       
//SYSUDUMP DD  SYSOUT=*                                       
//SYSIN    DD  *                                             
  COPY DATASET(INCLUDE(AB.**)) -               
       OUTDY(VOL001) -                                       
       NULLMGMTCLAS  -                                       
       NULLSTORCLAS  -                                       
       BYPASSACS(**) -                                       
       CANCELERROR   -                                       
       CAT           -                                       
       DELETE        -                                       
       FORCECP(0)    -                                       
       PURGE         -                                       
       SPHERE        -                                       
       WAIT(10,10)                                           
//*     
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 Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top