View previous topic :: View next topic
|
Author |
Message |
kcprem
New User
Joined: 30 Jun 2005 Posts: 18
|
|
|
|
Hi,
I am doing a conversion of VB dataset to FB dataset and after that I am converting that FB dataset to new VB dataset.
i.e Datset1(VB)==VTOF=> Dataset2(FB)==FTOV=> Dataset3(VB)
Dataset1 has few trailing blanks in it.
While converting Datset2 to Dataset3 I am getting trailing blanks till end of the record.
If I used VLTRIM option all trailing blanks are removed. My problem is
in my original dataset I had few trailing blanks. But the new Dataset3 has no trailing blanks.
Can anyone help me how to get the new VB dataset with the original trailing blanks. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
DFSORT can't distinguish between the trailing blanks you had in the original VB input data set and the trailing blanks DFSORT padded the short FB records with. A blank is a blank is a blank.
Without seeing your JCL, control statements and input records, it's hard to know what you're trying to do, but I'll venture a guess, that if you use VLFILL=C'*' for the OUTFIL VTOF statement and VLTRIM=C'*' for the OUTFIL FTOV statements, you'll get your trailing blanks back. Just make sure that the '*' or whatever character (e.g. =, $, or whatever) you use for VLFILL and VLTRIM does not occur at the end of any input record (obviously, you can't use blank for the character since that does occur at the end of records). |
|
Back to top |
|
|
kcprem
New User
Joined: 30 Jun 2005 Posts: 18
|
|
|
|
Hi Frank Yaeger,
Thanks a lot. Now it's working fine. My problem is solved.
Thanks a lot again.
Regards,
Prem |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
So I guessed right - good. Thanks for the feedback. |
|
Back to top |
|
|
|