Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Can we copy VSAM file to GDG member?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Can we copy VSAM file to GDG member?
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: 2150
Location: At my coffee table

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

Yes, why would you have any doubt?
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Thu Sep 13, 2007 10:16 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Sep 14, 2007 12:55 am    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Devzee
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 1 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us