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
 

 

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: 7936
Location: Bellevue, IA

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: 7936
Location: Bellevue, IA

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 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