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

Regarding EDIT option in Dfsort


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

New User


Joined: 06 Apr 2005
Posts: 10

PostPosted: Thu Apr 21, 2005 3:29 pm
Reply with quote

Could you please explain the EDIT option in DFSORT, for example the following format:

EDIT=(SI,III,III,IIT.TTT),SIGNS=(,-),

Regards,

Devi.
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 Apr 21, 2005 8:48 pm
Reply with quote

The EDIT option of DFSORT is fully explained in Chapter 3 of "z/OS DFSORT Application Programming Guide". Use this link:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA10/3.13?DT=20050222160456

then find the following:

p,m,f,edit

Explanation of your example:

EDIT=(SI,III,III,IIT.TTT),SIGNS=(,-),

SI,III,III,IIT.TTT is the edit pattern.

S indicates a sign.

I indicates a leading insignificant digit. If zero, this digit will not be shown.

T indicates a significant digit. If zero, this digit will be shown.

SIGNS gives the signs to use for S. In this case, blank is used as the leading sign for a positive value and - is used as the leading sign for a negative value.

The commas and period appear where shown.

Some examples:

Code:

Value (FS)         Editted as
+1234567890123      1,234,567,890.123
-1234567890123     -1,234,567,890.123
           +25                  0.025
      -5678901             -5,678.901
             0                  0.000
          -123                 -0.123
       +123456                123.456
Back to top
View user's profile Send private message
Suthandira

New User


Joined: 06 Apr 2005
Posts: 10

PostPosted: Fri Apr 22, 2005 9:59 am
Reply with quote

Hi Frank,

Thanks for ur Reply.

Regards,

Devi.
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 Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts SCOPE PENDING option -check data DB2 2
No new posts DFsort help with SUM() DFSORT/ICETOOL 12
Search our Forums:

Back to Top