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

how to copy flat file 600 bytes to 1055 bytes


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu May 28, 2009 11:02 pm
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
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu May 28, 2009 11:16 pm
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 Developer


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

PostPosted: Fri May 29, 2009 1:03 am
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
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Jun 02, 2009 5:48 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top