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

Packed decimal and zoned decimal in DFSORT


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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 Developer


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

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

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

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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts DFsort help with SUM() DFSORT/ICETOOL 12
Search our Forums:

Back to Top