IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

VLTRIM option in DFSORT


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kcprem

New User


Joined: 30 Jun 2005
Posts: 18

PostPosted: Thu Aug 18, 2005 2:13 am
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
Frank Yaeger

DFSORT Developer


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

PostPosted: Thu Aug 18, 2005 2:45 am
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
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 Developer


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

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

So I guessed right - good. Thanks for the feedback.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts SCOPE PENDING option -check data DB2 2
No new posts DFsort help with SUM() DFSORT/ICETOOL 12
Search our Forums:

Back to Top