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
 

 

Packed decimal and zoned decimal in DFSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
rajrohith

New User


Joined: 15 Apr 2005
Posts: 54
Location: chennai

PostPosted: Wed Nov 29, 2006 10:01 pm    Post subject: Packed decimal and zoned decimal in DFSORT
Reply with quote

I want to know how to code the field of packed decimal and zoned decimal in sort

for example

name x(10)
salary s9(8) comp-3
amount s9(4) comp

I want to sort salary and amount
how to specify in sort card
do I have to specify like sortfield(11,8.pd.a,19.4.zd,a) isit correct or not
i want to know how to specify the field in sort card
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed Nov 29, 2006 10:15 pm    Post subject:
Reply with quote

See the following for an explanation of how COBOL formats relate to DFSORT formats:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA20/C.3?DT=20060615185603

In your case:

o the salary field of s9(8) comp-3 corresponds to 11,5,PD.
o the amount field of s9(4) comp corresponds to 16,2,FI (ZD would not have comp).

So your SORT statement would be:

Code:

   SORT FIELDS=(11,5,PD,A,16,2,FI,A)
Back to top
View user's profile Send private message
rajrohith

New User


Joined: 15 Apr 2005
Posts: 54
Location: chennai

PostPosted: Wed Nov 29, 2006 10:54 pm    Post subject:
Reply with quote

thanks frank
i know this is a chilly doubt
because iam new in sort
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts Joinkeys with decimal scdinesh DFSORT/ICETOOL 3 Fri Feb 10, 2017 4:46 am
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm
No new posts How to get the remainder and quotient... vnktrrd DFSORT/ICETOOL 2 Mon Oct 31, 2016 10:59 am
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am


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