MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ADD SUB DIV verbs in DFSORT

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
deepeshk79
Beginner


Joined: 20 Jun 2003
Posts: 112
Topics: 48
Location: Bangalore

PostPosted: Tue May 11, 2004 7:27 am    Post subject: ADD SUB DIV verbs in DFSORT Reply with quote

Hi All,

I was trying to add some columns thru sort. For eg my i/p file is

2054
3019
6724

My sysin card is

OUTREC FIELDS=(1,4,5:1,2,ZD,ADD,3,1,ZD,TO=FS,LENGTH=2)

This will add the 20+5 = 25 and put that in 5th position and then it will add 30+1=31 ...etc

But when i tried to add 20+5+4 by giving two ADD verbs in sysin card..it didnt work out. It was abending. The Sysin card i used is as below

OUTREC FIELDS=(1,4,5:1,2,ZD,ADD,3,1,ZD,ADD,4,1,TO=FS,LENGTH=2)

How can we use multiple ADD verbs or SUB verbs or DIV verbs.
Went to the DFSORT site and got some information on this but it all went over my head Smile

Any Thoughts

* *
Back to top
View user's profile Send private message AIM Address
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Tue May 11, 2004 9:57 am    Post subject: Reply with quote

You have:

Code:

  OUTREC FIELDS=(1,4,5:1,2,ZD,ADD,3,1,ZD,ADD,4,1,TO=FS,LENGTH=2)


and the error message you received was:

Code:

            OUTREC FIELDS=(1,4,5:1,2,ZD,ADD,3,1,ZD,ADD,4,1,TO=FS,LENGTH=2)
                                                           $               
ICE006A 0 OPERAND DEFINER ERROR                                           


You need:

Code:

  OUTREC FIELDS=(1,4,5:1,2,ZD,ADD,3,1,ZD,ADD,4,1,ZD,TO=FS,LENGTH=2)



Your problem is you had 4,1,TO=FS,... instead of 4,1,ZD,TO=FS,.... Each field you use in a DFSORT arithmetic expression must be in the form p,m,f. You had p,m which is invalid.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group