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: 8057
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: 8057
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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us