View previous topic :: View next topic
|
Author |
Message |
hemantheng
New User
Joined: 13 Feb 2008 Posts: 8 Location: US
|
|
|
|
Hi,
I have a VB file of 192 LRECL(This can have records of 57, 72, 192 bytes).
I am doing a sort which will change one of the field values and write to a 192 bytes FB file.
Then with one more sort, i am converting FB to VB of 192 LRECL.
sort card looks like this,
OPTION COPY
OUTFIL FNAMES=SORTOUT,FTOV,OUTREC=(1,192)
The question is, all the records in the final VB file will be of 192 bytes(even 57 and 72 LRECL records are converted into 192 LRECL). So when i do a COMPAREX am getting differences in all the records.
Is there any correct way of doing it?
Thanks. |
|
Back to top |
|
|
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 496 Location: USA
|
|
|
|
Try this:
Code: |
OUTFIL FNAMES=SORTOUT,OUTREC=(1,192),FTOV,VLTRIM=C' ' |
|
|
Back to top |
|
|
srinathangya
New User
Joined: 19 Dec 2005 Posts: 77
|
|
|
|
Will U pls let me know how to copy a variable length file into a FB file?
Pls help me with the code :-)
Reg,
Srinath. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
Back to top |
|
|
|