Hi,
I've trailer records in my file as below..
I want to have the amount fields in STTTTTTTTTT.TTT format. Can i have EDIT clause in the TRAILER line???
There is no pre-defined mask for STTTTTTTTTT.TTT
'TOT1,''',TOTAL=(66,11,ZD,STTTTTTTTTTTTTT) is not working.
'TOT1,''',TOTAL=(66,11,ZD,edit=STTTTTTTTTTTTTT) is also not working
'TOT1,''',TOTAL=(66,11,ZD,EDIT=(STTTTTTTTTT.TTT),SIGNS=(+,-)),'''',/,
'TOT2,''',TOTAL=(77,11,ZD,EDIT=(STTTTTTTTTT.TTT),SIGNS=(+,-)),'''') is working. Not sure if SIGNS is compulsary..
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
Lanand,
Good that it is working?
Frank,
Quote:
you must have SIGNS to define the signs to be used for S.
I have a doubt here. Don't we use SIGNS=() to override or set the output signs? I was under an assumption that if SIGNS is not coded default values will be picked up. Isn't it true?
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
Aaru,
This is what DFSORT manual says.
Quote:
If SIGNS is specified, an S in the first or last character of the pattern is treated as a sign; an S anywhere else in the pattern is treated as the letter S.
If SIGNS is not specified, an S anywhere in the pattern is treated as the letter S.
For example, M26 has + and - as the defaults for the signs. You can use SIGNS to override these defaults.
But if you use S in the pattern for EDIT, you must specify the signs with SIGNS - there's no default (well, 'S' is the default but you don't want that).