View previous topic :: View next topic
|
Author |
Message |
Suthandira
New User
Joined: 06 Apr 2005 Posts: 10
|
|
|
|
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 |
|
 |
Frank Yaeger
DFSORT Developer

Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
 |
Suthandira
New User
Joined: 06 Apr 2005 Posts: 10
|
|
|
|
Hi Frank,
Thanks for ur Reply.
Regards,
Devi. |
|
Back to top |
|
 |
|
|