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 

Where I am doing wrong on this SORT card ?

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


Joined: 05 Oct 2005
Posts: 28
Topics: 20
Location: INDORE

PostPosted: Wed May 21, 2008 9:16 am    Post subject: Where I am doing wrong on this SORT card ? Reply with quote

Hi.
I am having a PD filed of length 3.The content is like below.

Code:

014
13C


I need to convert this field with the below formula.

((PD Value (converted to ZD) - 1)/12) + 1200

I am trying to use the below card.

OUTREC FIELDS=((+1,SUB,299,3,PD,DIV,+12),ADD,+1200)

When this is executed ,the value is coming as

1107

Where I am expecting the value of 1294.

((1134-1)/12)+1200)
(1133/12)+1200
94+1200
1294

Can some one help on this?

Thanks
Tempuser
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


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

PostPosted: Wed May 21, 2008 9:46 am    Post subject: Reply with quote

This DFSORT OUTREC statement gives 1294 as the result:

Code:

   OUTREC FIELDS=(((299,3,PD,SUB,+1),DIV,+12),ADD,+1200)

_________________
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
tempuser
Beginner


Joined: 05 Oct 2005
Posts: 28
Topics: 20
Location: INDORE

PostPosted: Wed May 21, 2008 9:57 am    Post subject: Reply with quote

Thank you Frank!

Have a good day!
Back to top
View user's profile Send private message
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