Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 7315

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 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
No new posts OUTREC FILELDS FAILS WITH ICE126A 2 ... balaji81_k DFSORT/ICETOOL 8 Sat Jul 02, 2016 1:22 am
No new posts OUTREC RDW NOT INCLUDED krsenthil85 SYNCSORT 10 Fri May 06, 2016 3:22 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us