Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
Priyanka Pyne

New User

Joined: 09 Feb 2008
Posts: 95
Location: India

Posted: Mon Sep 26, 2011 9:14 pm    Post subject: Compute in Outrec

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))

Bill Woodger

DFSORT Moderator

Joined: 09 Mar 2011
Posts: 7314

 Posted: Mon Sep 26, 2011 9:25 pm    Post subject: 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.
Anuj Dhawan

Senior Member

Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

 Posted: Fri Oct 07, 2011 3:17 pm    Post subject: 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.
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics Compute statement with Cobol Z/os 5.2 Chetan Kumar COBOL Programming 2 Fri May 11, 2018 8:02 pm OUTREC OVERLAY different to INCREC ge... Joerg.Findeisen SYNCSORT 8 Fri Apr 27, 2018 2:11 am OUTREC with ALter Command scorp_rahul23 DFSORT/ICETOOL 1 Wed Nov 22, 2017 3:10 pm WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am

 © 2003-2017 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us