|
|
| Author |
Message |
sats456
New User
Joined: 29 May 2005 Posts: 12
|
|
|
|
Hi All,
Could you anyone explain me the use of Below mentioned Control Card in SORT.
SORT FIELDS=COPY
OUTREC FIELDS=(1:32,8,
9:C',',
010:18,07,PD,EDIT=(STTTTTTTTTTTT.TT),SIGNS=(,-,,)
I understand the purpose of OUTREC .But I am not sure as to what EDIT= and SIGNS= are for ?
I have a rough Idea that they are being used for Editing but not clear on what excatly Editing will be done.If someone,Could illustrate me the use of EDIT= & SIGNS= clause with an Example,it would be great..
Thanks in Advance,
Satish |
|
| Back to top |
|
 |
References
|
|
 |
Frank Yaeger
DFSORT Moderator
Joined: 15 Feb 2005 Posts: 4684 Location: San Jose, CA
|
|
|
|
| Code: |
EDIT=(STTTTTTTTTTTT.TT),SIGNS=(,-,,)
|
The EDIT and SIGNS pattern shown here tells DFSORT that you want your converted PD numbers to have a blank sign for plus or a '-' sign for minus followed by 15 decimal digits, with leading zeros, when appropriate and a decimal point before the last two digits. Here are some examples of how various values will be edited:
| Code: |
PD value Editted value
+1 000000000000.01
-1234 -000000000012.34
+123456 000000001234.56
-99999 -000000000999.99
+1234567890 000012345678.90
|
For an overview of DSORT's edit functions, see:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CG10/2.4.8?DT=20050223112358 |
|
| Back to top |
|
 |
sats456
New User
Joined: 29 May 2005 Posts: 12
|
|
|
|
Many Thanks Yaeger for your Prompt response.
The EDITS= clause maening is very clear to me now.Also I checked the IBM website where various Comphrensive possibilities on EDIT= clause have been specified.
But while looking for SIGNS= Clause,I found it has following format
SIGNS=(a,b,c,d)
I believe b is for '-' clause
What are a,c,d for ? I couldnot find this.
If you please let me know your suggestions on this,It would be great.
Thanks ,
Satish |
|
| Back to top |
|
 |
MGIndaco
Moderator
Joined: 10 Mar 2005 Posts: 478 Location: Milan, Italy
|
|
| Back to top |
|
 |
Frank Yaeger
DFSORT Moderator
Joined: 15 Feb 2005 Posts: 4684 Location: San Jose, CA
|
|
|
|
SIGNS=(a,b,c,d)
The S for sign can be on the left (leading sign), on the right (trailing sign) or on both the left and right (leading and trailing sign). a is the leading plus sign, b is the leading minus sign, c is the trailing plus sign, and d is the trailing minus sign. For example:
EDIT=(STTTT),SIGNS=(+,-)
EDIT=(TTTTS),SIGNS=(,,+,-)
EDIT=(STTTTS),SIGNS=(+,-,+,-) |
|
| Back to top |
|
 |
|
|
|