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 IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am
No new posts VSAM File free space sancraig16 JCL & VSAM 13 Fri Mar 30, 2018 1:02 am
No new posts Getting information (RECFM/LRECL/BLKS... Tim Van Holder COBOL Programming 3 Wed Mar 14, 2018 2:10 pm

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