IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Compute in Outrec


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Sep 26, 2011 9:25 pm
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

Superior Member


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

PostPosted: Fri Oct 07, 2011 3:17 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts question on Outrec and sort #Digvijay DFSORT/ICETOOL 20
No new posts Sort w/OUTREC Question DFSORT/ICETOOL 2
No new posts Getting OUTREC - SHORT REC error for ... DFSORT/ICETOOL 12
No new posts Issues with outrec overlay while extr... SYNCSORT 7
No new posts SEQNUM with TRA=ETOA in OUTREC SYNCSORT 5
Search our Forums:

Back to Top