Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Quote:
Can you give the EDIT PATTERNS for the a value which is defined a
S9(3)V99.Please explain the same.
Not sure what you want here. S9(3)V99 is a 5-byte ZD field (the decimal point is implied but not contained in the internal representation of the value). With DFSORT, you can use the pre-defined edit masks M0-M26, as appropriate, e.g.
Code:
OUTREC BUILD=(21,5,ZD,M18)
or you can use your own edit mask, e.g.
Code:
OUTREC BUILD=(21,5,ZD,EDIT=(STTT.TT),SIGNS=(+,-))
I can't really tell you which edit mask to use. That depends on what YOU want the output to look like.
For a tutorial on using DFSORT edit masks, see the "Editing Numeric Fields" section in Chapter 5 of "z/OS DFSORT: Getting Started".
For complete information on using DFSORT edit masks, see the "OUTFIL Control Statements" section in Chapter 3 of "z/OS DFSORT Application Programming Guide".
You can access all of the DFSORT books online from: