nehansh
New User
Joined: 12 Nov 2010 Posts: 2 Location: bangalore
|
|
|
|
Hi
I am new to this forum and to mainframes for that matter. Hoping to get the neede help and support.
My query is as follows:
I need to calculate the sum total of an alphanumeric field in my input file. I came up with:
SORT FIELDS=COPY
OUTFIL FNAMES=SORTOUT,NODETAIL,REMOVECC,
TRAILER1=(C'000010010', *XMIT-FILE-ID
COUNT=(PD,LENGTH=06), *XMIT-REC-CT INTEGER
TOT=(72,16,C))
Will this work or the fields need to be compulsarily PD or ZD?? |
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
It's not clear from your description what you're trying to do.
Please show an example of the records in your input file (relevant fields only) and what you expect for output. Explain the "rules" for getting from input to output. Give the starting position, length and format of each relevant field. Give the RECFM and LRECL of the input files. |
|