Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 686
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us