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

Sort to make remaining 10 bytes be blank


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

New User


Joined: 19 Feb 2005
Posts: 6

PostPosted: Thu Mar 06, 2008 5:30 pm
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Mar 06, 2008 5:42 pm
Reply with quote

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

DFSORT Developer


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

PostPosted: Thu Mar 06, 2008 10:10 pm
Reply with quote

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

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Mar 06, 2008 10:26 pm
Reply with quote

Looks like the program that is producing the records is not setting the length properly before writing them!
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 Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts trying to make sense of keylists TSO/ISPF 11
Search our Forums:

Back to Top