Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Compute in Outrec

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Priyanka Pyne

New User


Joined: 09 Feb 2008
Posts: 95
Location: India

PostPosted: Mon Sep 26, 2011 9:14 pm    Post subject: Compute in Outrec
Reply with quote

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
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Mon Sep 26, 2011 9:25 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Fri Oct 07, 2011 3:17 pm    Post subject:
Reply with quote

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 icon_biggrin.gif ).

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts OUTREC with ALter Command scorp_rahul23 DFSORT/ICETOOL 1 Wed Nov 22, 2017 3:10 pm
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts SORT- outrec ram_vizag DFSORT/ICETOOL 10 Tue Sep 27, 2016 12:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us