View previous topic :: View next topic
|
Author |
Message |
krisprems
Active Member
Joined: 27 Nov 2006 Posts: 649 Location: India
|
|
|
|
Is there a way to copy a VB file to an FB file, where the VB file LRECL=256 and FB file has LRECL=900? |
|
Back to top |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 632 Location: Wisconsin
|
|
|
|
How do you want to pad the trailing bytes in the file? Lowvalues, spaces? |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Assuming you want to pad with blanks, you can use these DFSORT control statements:
Code: |
OPTION COPY
OUTFIL VTOF,BUILD=(5,252,900:X)
|
|
|
Back to top |
|
|
krisprems
Active Member
Joined: 27 Nov 2006 Posts: 649 Location: India
|
|
|
|
Thanks Frank, its working. |
|
Back to top |
|
|
rajalg05
New User
Joined: 25 Dec 2010 Posts: 1 Location: Mumbai
|
|
|
|
Hey Frank,
Its an old post, dont know if u r still checking this space.
How would the output file be filled from position 252 to 900. Beyond position 900, the output file is filled by spaces.
Thanks,
Raja |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
if file is FB and LRECL=900 there is NO Beyond position 900.
position 253-900 is filled with spaces.
Gerry |
|
Back to top |
|
|
|