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

VB to FB - Finding LRECL


IBM Mainframe Forums -> SYNCSORT
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
selvamsrinivasan85

New User


Joined: 09 Aug 2010
Posts: 31
Location: Chennai

PostPosted: Mon Jan 08, 2024 6:52 pm
Reply with quote

Hi all,
I have a requirement to copy all the VB files from GDG base to a single FB file. when i check the files, each file is of different LRECL.
Say, 1st version file is VB/27994 and 2nd version file is 23472.

How can i convert to a FB file?.
I usually use OUTREC with CONVERT option. I would like to have like
Code:
OUTREC FIELDS=(1:5,Maxlen),CONVERT


Any suggestions would be helpful.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2021
Location: USA

PostPosted: Mon Jan 08, 2024 10:03 pm
Reply with quote

Use maximum possible (LRECL-4) from VB to create FB

Quote:
VLFILL can be used to allow processing of variable-length input records which are too short to contain all specified OUTREC or BUILD fields.

Whereas the FIELDS, BUILD, OVERLAY, FINDREP, and IFTHEN parameters of the OUTREC statement apply to all input records, the OUTREC, BUILD, OVERLAY, FINDREP, and IFTHEN parameters of the OUTFIL statement apply only to the OUTFIL input records for its OUTFIL group. In addition, the OUTREC
and BUILD parameters of the OUTFIL statement support the forward slash (/) separator for creating blank records and new records, whereas the FIELDS and BUILD parameters of the OUTREC statement do not.

• FTOV can be used to convert fixed-length input records to variable-length output records. FTOV can be used with or without OUTREC , BUILD, OVERLAY, FINDREP, or IFTHEN.

• VLTRIM can be used to remove the trailing bytes with a specified value, such as blanks, binary zeros or asterisks, from variable-length records. VLTRIM can be used with or without FTOV.

• VLTRAIL can be used to insert a character string or hexadecimal string at the end of variable-length records. VLTRAIL can be used with or without FTOV or VLTRIM.
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1249
Location: Bamberg, Germany

PostPosted: Tue Jan 09, 2024 1:12 am
Reply with quote

Usually a SORT is best choice, but also IEBGENER, and even IEBDG can be used for conversion.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Tue Jan 09, 2024 8:17 am
Reply with quote

Couple of questions ..

Why do you need to do that ? Can’t source be corrected at first place ?

Last , do you want one highest lrec db or each fb same as vb size ?
Back to top
View user's profile Send private message
selvamsrinivasan85

New User


Joined: 09 Aug 2010
Posts: 31
Location: Chennai

PostPosted: Tue Jan 09, 2024 11:22 am
Reply with quote

sergeyken wrote:
Use maximum possible (LRECL-4) from VB to create FB


Thanks Sergeyken, That's the best idea and I did the same.
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 -> SYNCSORT

 


Similar Topics
Topic Forum Replies
No new posts Finding and researching jobs All Other Mainframe Topics 0
No new posts Finding Assembler programs PL/I & Assembler 5
No new posts Finding faulty logic Subscript out of... COBOL Programming 5
No new posts Finding record and replacing with val... DFSORT/ICETOOL 3
No new posts Finding a semi colon (;) in ISPF TSO/ISPF 5
Search our Forums:

Back to Top