View previous topic :: View next topic
|
Author |
Message |
dinakarpotu
New User
Joined: 09 Jun 2007 Posts: 4 Location: Chennai
|
|
|
|
Friends,
Can we copy VSAM File to GDG Member using REPRO?
Thanks |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Yes, why would you have any doubt? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello dinakarpotu and welcome to the forums,
Quote: |
Can we copy VSAM File to GDG Member using REPRO |
Please clarify what you are asking - Partioned DataSets have members, Generation Data Groups have a base and (usually) some number of generations (GnnnnVnn).
As was posted, yes, you can create a new generation (+1) using REPRO. |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
In REPRO you cannot directly reference GDG with brackets (??).
However you can give the GDG full name like qual1.qual2.G000xxvxx in the repro command.
But you can use REPRO infile(ddname) outfile(ddname) and the ddname can be GDG. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
But, for such a simple task to perform, why did you not test it yourself using a small test file before posting the thread. |
|
Back to top |
|
|
dinakarpotu
New User
Joined: 09 Jun 2007 Posts: 4 Location: Chennai
|
|
|
|
Devzee REPRO has recognised GDG with brackets
I was able to do REPRO for VSAM to GDG Member
//STEP2OF4 EXEC PGM=IDCAMS,REGION=1024K
//SYSPRINT DD SYSOUT=*
//OLD DD DSN=TMS623.DINAKAR.TEST.VSAM,DISP=OLD
//NEW DD DSN=TQTSGD00.DINAKAR.GDG(+1),
// DISP=(NEW,CATLG,DELETE),
// UNIT=DASD,SPACE=(CYL,(500,500),RLSE),
// DCB=(DPXXCD00.GDGMODEL,RECFM=FB,LRECL=4)
//SYSIN DD *
REPRO -
INFILE(OLD) -
OUTFILE(NEW)
/* |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
dinakarpotu
Read my post again and understand what I explained. |
|
Back to top |
|
|
dinakarpotu
New User
Joined: 09 Jun 2007 Posts: 4 Location: Chennai
|
|
|
|
Thanks for correcting.I had missed out the last line in ur post:-) |
|
Back to top |
|
|
|