View previous topic :: View next topic
|
Author |
Message |
Priyanka Pyne
New User
Joined: 09 Feb 2008 Posts: 95 Location: India
|
|
|
|
I have some specific requirement for which I will have to do some calculation in the outrec field.
I have tried the following:
Code: |
SORT FIELDS=(1,9,CH,A)
OUTREC FIELDS=((1,10,((15-10)-1)X,
15,(30-15)+1,((35-30)-1)X,
35,(60-35)+1,((80-60)-1)X,
80,(100-80)+1))
|
|
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
I don't know what you are trying to do.
If you want calculations, you have ADD, SUB, MUL, DIV. Is that enough? I don't know how complicated they can get in one statement, you have, of course, your Sort manual.
If you are still stuck, you'll have to explain the exact calculation that you want. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
You can't just create your own syntax and hope it'll wok for you, unless of course you're a product developer. (I don't like it, for DFSORT, when Frank/Kolusu say this is our syntax and it works ).
As Bill has indicated, to give you a go -- just search for ADD in JCL part of the Forum and you'll see a lot of working examples around. |
|
Back to top |
|
|
|