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
 
how to copy flat file 600 bytes to 1055 bytes

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
arunmozhicholan

New User


Joined: 07 Feb 2007
Posts: 27
Location: chennai

PostPosted: Thu May 28, 2009 10:35 pm    Post subject: how to copy flat file 600 bytes to 1055 bytes
Reply with quote

Hi All ,

i have a requirement to copy 600 bytes flat file to 1055 bytes , i tried copying usingIEBGENER , REPRO But it not , can anyone suggest me how to do it .

files are coming through NDM
Able to copy through INSYNC TOOL ...
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8167
Location: East Dubuque, Illinois, USA

PostPosted: Thu May 28, 2009 11:02 pm    Post subject:
Reply with quote

IEBGENER will do it quite happily -- use the RECORD utility control statement to fill the 455 bytes you're adding to the record.
Back to top
View user's profile Send private message
arunmozhicholan

New User


Joined: 07 Feb 2007
Posts: 27
Location: chennai

PostPosted: Thu May 28, 2009 11:05 pm    Post subject: Reply to: how to copy flat file 600 bytes to 1055 bytes thro
Reply with quote

can you please give me an example.
i'm not clear , sorry
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8167
Location: East Dubuque, Illinois, USA

PostPosted: Thu May 28, 2009 11:16 pm    Post subject:
Reply with quote

Your IEBGENER control statements (see the manual link for the Utilities manual if you haven't done this before) will look like:
Code:
  GENERATE MAXFLDS=99,MAXLITS=455
  RECORD FIELD=(600,1,,1),FIELD=(45,' ... <45 spaces> ... ',601),           X
               FIELD=(45,' ... <45 spaces> ... ',646), ...
               FIELD=(5,'     ',1051)
which says to copy the first 600 bytes, then append 45 bytes of spaces, another 45 bytes of spaces, and so forth.

IEBGENER is much more flexible than just doing flat file copies.
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: Fri May 29, 2009 1:03 am    Post subject:
Reply with quote

Here's a DFSORT job that will do it quite easily:

Code:

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

New User


Joined: 07 Feb 2007
Posts: 27
Location: chennai

PostPosted: Fri May 29, 2009 10:42 am    Post subject:
Reply with quote

thanks for your replies .
am working on it ..
Back to top
View user's profile Send private message
vidyadhar

New User


Joined: 17 Nov 2007
Posts: 2
Location: chennai

PostPosted: Tue Jun 02, 2009 5:40 pm    Post subject:
Reply with quote

Easily we can copy using with File-Aid, no need to write any JCL.
please see attachment jpg files, in this example i have taken first file with 4092 LRECL and copied into 6000 LRECL.

Screen shots deleted to reduce clutter - if wanted, please repost using the "Code" tag.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Jun 02, 2009 5:48 pm    Post subject:
Reply with quote

vidyadhar

Please DO NOT post screen shots unless you use the relevant VB tage. Screen shots are a waste of resource.

Also remember that not every shop will have purchased FileAid.
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