Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

DFSORT Formatting zero-suppressed numbers with commas

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
BZ

New User


Joined: 01 Aug 2006
Posts: 2

PostPosted: Tue Aug 01, 2006 2:13 am    Post subject: DFSORT Formatting zero-suppressed numbers with commas
Reply with quote

Is there a way to format a zero-suppressed number with commas using sort? When I use the following sortlib I get a number #####. But I'd like to get ##,###. The number can be a different size each month.

Code:

  SORT FIELDS=COPY,
     DYNALLOC=(,5),SIZE=E20000
  OUTFIL CONVERT,
       FILES=OUT,
     OUTREC=(1:C'******* Monthly Totals: ',   DESCRIPTION
             25:1,6,PD,EDIT=(IIIIIIIIIITS),   COUNT
             37:44X)
Back to top
View user's profile Send private message

sril.krishy

Active User


Joined: 30 Jul 2005
Posts: 182
Location: hyderabad

PostPosted: Wed Aug 02, 2006 9:18 pm    Post subject:
Reply with quote

HI,
Check the MASK's available with DFSORT.If you are lucky,you might get one.

Thank you
Krishy
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


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

PostPosted: Sat Aug 05, 2006 10:40 pm    Post subject:
Reply with quote

You can put commas in the EDIT pattern wherever you want them. For example:

Code:

     25:1,6,PD,EDIT=(II,III,III,IITS),SIGNS=(,,+,-),


Note that I've also added SIGNS which you need if you want the S to be interpreted as a trailing sign rather than as a hardcoded 'S'.
Back to top
View user's profile Send private message
BZ

New User


Joined: 01 Aug 2006
Posts: 2

PostPosted: Mon Aug 07, 2006 7:00 pm    Post subject: Re: DFSORT Formatting zero-suppressed numbers with commas
Reply with quote

That works and looks great! Thank you!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts How to get the remainder and quotient... vnktrrd DFSORT/ICETOOL 2 Mon Oct 31, 2016 10:59 am
No new posts Row-Numbers of distinct rows? Auryn DB2 1 Thu Oct 20, 2016 4:38 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us