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

Force zeroes to a zoned decimel variable


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

New User


Joined: 11 Jul 2005
Posts: 87

PostPosted: Tue Jul 07, 2009 3:41 pm
Reply with quote

Hi All,

I need to force zeroes to a zoned decimal in a sort. My field is declared in cobol as s9(9). i did like the one below

OUTREC FIELDS=(1:C'000000000')

Is there any other way of doing it?

Thanks in Advance,
Chinnielr.
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: Tue Jul 07, 2009 8:53 pm
Reply with quote

There are several other ways to do it. Here are a couple:

Code:

   OUTREC BUILD=(9C'0')


Code:

   OUTREC BUILD=(+0,TO=ZD,LENGTH=9)


What is your criteria for "any other way"? What are you trying to achieve?
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts force tablespace using LISTDEF input DB2 1
No new posts Remove leading zeroes SYNCSORT 4
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
Search our Forums:

Back to Top