Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
VLTRIM option in DFSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
Author Message
kcprem

New User


Joined: 30 Jun 2005
Posts: 18

PostPosted: Thu Aug 18, 2005 2:13 am    Post subject: VLTRIM option in DFSORT
Reply with quote

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
View user's profile Send private message
References
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 4682
Location: San Jose, CA

PostPosted: Thu Aug 18, 2005 2:45 am    Post subject:
Reply with quote

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
View user's profile Send private message
kcprem

New User


Joined: 30 Jun 2005
Posts: 18

PostPosted: Thu Aug 18, 2005 4:04 am    Post subject: Re: VLTRIM option in DFSORT
Reply with quote

Hi Frank Yaeger,

Thanks a lot. Now it's working fine. My problem is solved.

Thanks a lot again.

Regards,
Prem
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 4682
Location: San Jose, CA

PostPosted: Thu Aug 18, 2005 4:31 am    Post subject:
Reply with quote

So I guessed right - good. Thanks for the feedback.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1