View previous topic :: View next topic
|
Author |
Message |
mramesh
New User
Joined: 19 Feb 2005 Posts: 6
|
|
|
|
I have the input file of 200 bytes VB, but the records are 190 bytes, so the remaing 10 bytes should be blank (not spaces).
Please find the examples with HEX ON below.
example:
Input file:
Code: |
+----8----+----9----+----0-
ANT TRAVEL
CDE4EDCECD4444444444
153039155300000000000
|
output fule:
Code: |
+----8----+----9----+----0
ANT TRAVEL
CDE4EDCECD44
15303915530000
KITCHENS PLC
DCECCCDE4DDC444
29338552073300000
|
The remaing 10 bytes sholud be blank (it is not an spaces).
Can we do it using SORT. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
for a variable record, the lrecl is the maximum record length expected,
for a layout consistent with the VB definition, the trailing blanks/spaces should not be there
if You expect every record to be filled up with blanks/spaces up to the maximum length
there is no reason of having the overhead of VB record format
and You should change a little bit Your terminology and/or Your view of things |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
mramesh,
I can't figure out what you want to do. Blank/space are the same thing (X'40'). And as enrico points out, VB records usually don't have trailing blanks (although they can).
You're going to have to do a better job of explaining clearly what you want do before anyone can help you. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Looks like the program that is producing the records is not setting the length properly before writing them! |
|
Back to top |
|
|
|