Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

DFSORT/ICETOOL :: RE: Performing arithmetic on input field

$
0
0
Author: zh_lad
Posted: Wed Dec 07, 2016 3:39 pm (GMT 5.5)

fine I tried this.

Code:
//STEP001  EXEC PGM=SORT       
//SORTIN   DD *               
123                           
//SORTOUT  DD SYSOUT=*         
//SYSIN    DD *               
  OPTION COPY                 
  OUTREC FIELDS=(1,3,ZD,MUL,+3)
//SYSOUT   DD SYSOUT=*         
//SYSUDUMP DD SYSOUT=*         


and output is:
Code:
---+----1----+-
***************
            369


Can you please explain why do I need '+3' not 3, and why is output 11 bytes long?

Thanks.
Thanks.


Viewing all articles
Browse latest Browse all 9405

Trending Articles