View previous topic :: View next topic
|
Author |
Message |
rajrohith
New User
Joined: 15 Apr 2005 Posts: 54 Location: chennai
|
|
|
|
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 |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
|
rajrohith
New User
Joined: 15 Apr 2005 Posts: 54 Location: chennai
|
|
|
|
thanks frank
i know this is a chilly doubt
because iam new in sort |
|
Back to top |
|
|
|