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

Copying a GDG file to UNIX layer using OCOPY


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

New User


Joined: 16 Mar 2006
Posts: 2
Location: Kapilaranya, USA

PostPosted: Fri Jul 20, 2007 9:29 pm
Reply with quote

I was trying to copy an MVS GDG file to the UNIX layer. I have enclosed my proc below.
The first step is to create a file "amcb.cbi" on the UNIX layer. The second step was to copy a GDG to that file.

I am having problems copying the GDG over. When I name the GDG as a flat file and try this, it works fine. I tried using the G00 number instead of (0), but that too did not work.

Code:

//RBC06251 PROC                                     
//S010 EXEC PGM=BPXBATCH,DYNAMNBR=20,REGION=6M
//HFS DD PATH='/u/rbc/dropbox/in/amcb.cbi',                                 
//       PATHOPTS=(ORDWR,OCREAT),PATHDISP=(KEEP,DELETE),                     
//       PATHMODE=(SIRWXU,SIRWXG)                                           
//STDERR  DD  SYSOUT=*                                                       
//SYSTSPRT DD SYSOUT=*                                                       
//SYSOUT   DD SYSOUT=*                                                       
//SYSTSIN DD DUMMY                                                           
//*                                                                         
//S020 EXEC PGM=IKJEFT01,DYNAMNBR=20,REGION=6M
//MVS DD DSN=JCN.RBT.RB0625.CBKDATA(0),DISP=SHR
//HFS DD PATH='/u/rbc/dropbox/in/amcb.cbi'                                   
//SYSTSPRT DD SYSOUT=*                                                       
//SYSOUT  DD SYSOUT=*               
//*

JCL:

//JS01 EXEC RBC06251
//SYSTSIN DD *
OCOPY INDD(MVS) OUTDD(HFS) TEXT CONVERT((BPXFX311)) FROM1047
/*
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jul 20, 2007 11:26 pm
Reply with quote

Hello,

Please post any sysout output that was created by the execution.

Also, does "did not work" mean it ran, but the output was invalid or that it did not run?
Back to top
View user's profile Send private message
svjathi

New User


Joined: 16 Mar 2006
Posts: 2
Location: Kapilaranya, USA

PostPosted: Sat Jul 21, 2007 12:23 am
Reply with quote

I had tried the above stuff some days back. The SYSOUT will have to be restored for the exact message. I shall send you that as soon as the SYSOUT is restored.

But the job did not run. It did not like the (0) or the G00 number. But when I changed the last segment to a hard coded stuff like JCN.RBT.RB0625.CBKDATA.JULY17, it worked fine.

Thanks for your reply. I shall get back to you on this.
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