MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IDCAMS help - copy VSAM (LRECL 64) to GDG (LRECL 65)

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
vazigarasen
Beginner


Joined: 16 Nov 2005
Posts: 4
Topics: 2

PostPosted: Wed Nov 16, 2005 3:06 pm    Post subject: IDCAMS help - copy VSAM (LRECL 64) to GDG (LRECL 65) Reply with quote

Hi
I have requirement where i need to copy the VSAM file which is of length 64 to a gdg file whose length is 65 .....Please suggest me a good way to achieve this one

Thanks
Sen
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Wed Nov 16, 2005 3:28 pm    Post subject: Reply with quote

vazigarasen,

Try this

Code:

//STEP0100 EXEC PGM=SORT                         
//SYSOUT   DD SYSOUT=*                           
//SORTIN   DD DSN=YOUR VSAM FILE,
//            DISP=SHR                           
//SORTOUT  DD DSN=YOUR GDG(+1),           
//            DISP=(NEW,CATLG,DELETE),           
//            UNIT=SYSDA,                         
//            SPACE=(CYL,(X,Y),RLSE)             
//SYSIN    DD    *                               
  SORT FIELDS=COPY                               
  OUTREC FIELDS=(1,64,X)                         
/*


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vazigarasen
Beginner


Joined: 16 Nov 2005
Posts: 4
Topics: 2

PostPosted: Wed Nov 16, 2005 3:34 pm    Post subject: Reply with quote

Hi Kolusu

We have our LRECL changing will this SORT will help us in changing that
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Wed Nov 16, 2005 3:47 pm    Post subject: Reply with quote

Quote:

We have our LRECL changing will this SORT will help us in changing that


vazigarasen,

Try running the JCL and see the output !

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vazigarasen
Beginner


Joined: 16 Nov 2005
Posts: 4
Topics: 2

PostPosted: Thu Nov 17, 2005 2:31 am    Post subject: Reply with quote

Thanks a Lot Kolusu it really works well ...................... Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group