View previous topic :: View next topic
|
Author |
Message |
joshua1983
New User
Joined: 25 May 2006 Posts: 7 Location: Mumbai, India
|
|
|
|
Hi all
In a program there are many fields to be displayed like
Name Date Occupation
- - -
- - -
- - -
Now the date column which is to be displayed is manipulated in the program itself....
now my question is
How to sort the records for column "Date"....???
How is it possible to sort the records after writing it to the queue...???
Thanks in advance.... |
|
Back to top |
|
|
Hanfur
Active User
Joined: 21 Jun 2006 Posts: 104
|
|
|
|
You can do this sorting by ORDERBY clause if this column are originating from DB2 tables.
If its coming thru prog then you can go with an Internal sort.But its better to create your extract file using your prog first then doing an externel JCL sort .
-Han. |
|
Back to top |
|
|
joshua1983
New User
Joined: 25 May 2006 Posts: 7 Location: Mumbai, India
|
|
|
|
thanks hanfur for ur reply
but in the program i've mentioned sorting is to be done only by programmic logic
is there any way ...??? |
|
Back to top |
|
|
Tricker
New User
Joined: 12 Jul 2006 Posts: 3
|
|
|
|
Then go for internal sort ..for this
1.you could create an array and could sort the elements in array using any of sorting algorithm.
2.Go for SORT command of Cobol.You need to have an SD section for it instead of FD section.
Just google it to find the syantax and usage..
-Han. |
|
Back to top |
|
|
mallikiran
New User
Joined: 07 Sep 2005 Posts: 49
|
|
|
|
Are we talking about CICS programs over here? |
|
Back to top |
|
|
|