Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 183
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 Need urgent suggestion on DFSORT subratarec DFSORT/ICETOOL 6 Wed Mar 21, 2018 8:46 pm
No new posts Formatting using DFsort Guru Nandu DFSORT/ICETOOL 5 Thu Nov 30, 2017 7:33 am
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 3 Fri Nov 17, 2017 9:49 am
No new posts Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us