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
 

 

Copy file of small lrecl to a large lrecl in jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Copy file of small lrecl to a large lrecl in jcl
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: 685
Location: Earth

PostPosted: Mon Feb 11, 2008 2:59 pm    Post subject:
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 Moderator


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

PostPosted: Mon Feb 11, 2008 9:45 pm    Post subject:
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    Post subject: thanks a lot
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    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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


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