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

How to get count values with leading zeroes??


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

New User


Joined: 04 Feb 2008
Posts: 65
Location: Hyd

PostPosted: Thu Apr 30, 2009 2:43 pm
Reply with quote

HI All,

I have input file like below::

Code:


1(2) 5(30)                         35(6)
AB  PIGGOTT COMMUNITY HOSP         001122       
AB  BANK OF LAKE VILLAGE           004951       
AB  COMMUNITY MEDICAL CENTER       005143 
AB  TAYLOR & STUCKEY INC           005410       
AB  RANDOLPH CO CLERK OFFICE       005547       


Now i am getting output like this::
Code:

PIGGOTT COMMUNITY HOSP         AB 001122        1
BANK OF LAKE VILLAGE           AB 004951        1
COMMUNITY MEDICAL CENTER       AB 005143        1
TAYLOR & STUCKEY INC           AB 005410        1
RANDOLPH CO CLERK OFFICE       AB 005547        1



But i want leading zeros in count value.
Expected output::
Code:

PIGGOTT COMMUNITY HOSP         AB 001122 00000001
BANK OF LAKE VILLAGE           AB 004951 00000001
COMMUNITY MEDICAL CENTER       AB 005143 00000001
TAYLOR & STUCKEY INC           AB 005410 00000001
RANDOLPH CO CLERK OFFICE       AB 005547 00000001


Used Sort Card::
Code:

SORT FIELDS=(1,02,CH,A,35,06,CH,A)         
OUTFIL REMOVECC,NODETAIL,                   
SECTIONS=(1,02,35,06,                     
TRAILER3=(5,30,X,1,02,X,35,06,X,COUNT)), 
VTOF,BUILD=(5,100)                           



Is there any way to get count value with leading zeroes.

Thanks in advance..
Kalyan
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Apr 30, 2009 3:46 pm
Reply with quote

Have you considered using COUNT=(edit) or COUNT=(to)
same as COUNT except that the 15-digit count appears edited or converted as specified. See p,m,f,edit under OUTREC for further details on the edit fields you can use. See p,m,f,to under OUTREC for further details on the to fields you can use.
?
Back to top
View user's profile Send private message
kalyan.v

New User


Joined: 04 Feb 2008
Posts: 65
Location: Hyd

PostPosted: Thu Apr 30, 2009 4:23 pm
Reply with quote

Hi,

It is working fine.
Thanks a lot.

Thanks,
Kalyan v
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts To get the count of rows for every 1 ... DB2 3
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
Search our Forums:

Back to Top