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

Copy file of small lrecl to a large lrecl in jcl


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

New User


Joined: 18 Sep 2007
Posts: 2
Location: New Delhi

PostPosted: Mon Feb 11, 2008 2:45 pm
Reply with quote

Hi All,

I need to copy a file of 1500 LRECL to a file of 1700 LRECL through JCL.
Can anybody suggest reg this.

Thanks
Vino
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Mon Feb 11, 2008 2:59 pm
Reply with quote

What have you tried so far?
This task can be achieved by a simple SORT jcl
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon Feb 11, 2008 9:45 pm
Reply with quote

Vino,

You can use a DFSORT job like this to do what you asked for. The 1500 byte records will be padded on the right with blanks to create 1700 byte records.

Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  input file (FB/1500)
//SORTOUT DD DSN=...  output file (FB/1700)
//SYSIN    DD    *
  OPTION COPY
  INREC OVERLAY=(1700:X)
/*
Back to top
View user's profile Send private message
vinopriya

New User


Joined: 18 Sep 2007
Posts: 2
Location: New Delhi

PostPosted: Thu Feb 14, 2008 10:35 am
Reply with quote

Hi Frank,

Thanks a lot for your answer.

Required task is done
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 How to split large record length file... DFSORT/ICETOOL 8
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top