View previous topic :: View next topic
|
Author |
Message |
gprerna
New User
Joined: 21 Mar 2007 Posts: 38 Location: US
|
|
|
|
Hi,
I have a requirement to convert a FB file to FBA format. Please let me know how we can do this using SYNCSORT.
LRECL of FB file = 30
LRECL of FBA file = 133
Also, is it neccessary that LRECL of FBA can be only 133 bytes?
Thanks! |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
gprerna wrote: |
... is it neccessary that LRECL of FBA can be only 133 bytes? |
No, there is no such restriction. If it can be defined as FB, it can be defined as FBA. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
gprerna,
Here's a DFSORT job that will do what you asked for. It puts a blank in positon 1 for the carriage control character, then copies the 30 input bytes and then blanks the rest of the record up to position 133.
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file (FB/30)
//SORTOUT DD RECFM=FBA,DSN=... output file (FBA/133)
//SYSIN DD *
OPTION COPY
INREC BUILD=(X,1,30,133:X)
/*
|
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
For this
Quote: |
Also, is it neccessary that LRECL of FBA can be only 133 bytes?
|
No, but 133 is the typical length of "regular" printed output. If you have a wider need or if you print landscape you may want a longer or shorter lrecl. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What are the criteria for page splits and line spacings ? |
|
Back to top |
|
|
|