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

Can we copy VSAM file to GDG member?


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

New User


Joined: 09 Jun 2007
Posts: 4
Location: Chennai

PostPosted: Thu Sep 13, 2007 9:11 pm
Reply with quote

Friends,

Can we copy VSAM File to GDG Member using REPRO?

Thanks
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Sep 13, 2007 9:14 pm
Reply with quote

Yes, why would you have any doubt?
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: Thu Sep 13, 2007 10:16 pm
Reply with quote

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
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Fri Sep 14, 2007 12:12 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri Sep 14, 2007 12:55 am
Reply with quote

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
View user's profile Send private message
dinakarpotu

New User


Joined: 09 Jun 2007
Posts: 4
Location: Chennai

PostPosted: Fri Sep 14, 2007 4:40 pm
Reply with quote

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
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Sat Sep 15, 2007 9:06 am
Reply with quote

dinakarpotu
Read my post again and understand what I explained.
Back to top
View user's profile Send private message
dinakarpotu

New User


Joined: 09 Jun 2007
Posts: 4
Location: Chennai

PostPosted: Sat Sep 15, 2007 11:12 am
Reply with quote

Thanks for correcting.I had missed out the last line in ur post:-)
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 0
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