View previous topic :: View next topic
|
Author |
Message |
aakar
New User
Joined: 08 Apr 2008 Posts: 36 Location: mumbai
|
|
|
|
I have a requirement wherein i have a variable block file, which has first three bytes indicating record type. The record type HED has a field at 20th poistion.Each HED is associated with few other types of records like ABC, DEF etc.These other records do not have this key.
HED.........data.........002(key)............
ABC.........data.........
DEF.........data.........
HED.........data.........001............
ABC.........data.........
DEF.........data.........
HED.........data.........003............
ABC.........data.........
DEF.........data.........
HED.........data.........001............
ABC.........data.........
DEF.........data.........
Desired output sorted on the key in HED :
HED.........data.........001............
ABC.........data.........
DEF.........data.........
HED.........data.........001............
ABC.........data.........
DEF.........data.........
HED.........data.........002............
ABC.........data.........
DEF.........data.........
HED.........data.........003............
ABC.........data.........
DEF.........data.........
Is anything possible with SORT/DFSORT?? |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
Back to top |
|
|
aakar
New User
Joined: 08 Apr 2008 Posts: 36 Location: mumbai
|
|
|
|
Thanks frank for the reply, but we are restricted from using ICEMAN, and so can we do it through simple "Sort" |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
If your shop has DFSORT, SORT=ICEMAN. If your shop has Syncsort, SORT=SYNCSORT. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hello,
ICEMAN would invoke the SORT product installed at your site - in your JCL use PGM=SORT in place of PGM=ICEMAN, job should go fine. By the way who makes these stupid restrictions,
Quote: |
but we are restricted from using ICEMAN |
whoever they are they just don't know what they are talking about and are in wrong profession for sure.. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
Thanks frank for the reply, but we are restricted from using ICEMAN, and so can we do it through simple "Sort" |
Not sure what you mean by this. PGM=ICEMAN or PGM=SORT invokes DFSORT. So what do you mean by "we are restricted from using ICEMAN"? And what do you mean by "simple "Sort"'? Since you posted in the DFSORT Forum, I assume you're using DFSORT and I gave you a DFSORT solution. You could use PGM=SORT instead of PGM=ICEMAN but both will give you the exact same result. |
|
Back to top |
|
|
byearun
New User
Joined: 25 Jul 2005 Posts: 17
|
|
|
|
Hi, When I used WHEN=GROUP, it is failing with syntax error. if i remove those conditions, it is working, but i didn't get the expected result. can someone help on this?? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
it is failing with syntax error. |
There is some reason you did not post the sytax error including the message id?
Telling us "it didn't work" will get no really useful replies - just requests for the info that is needed to help you. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
byearun,
If you are using DFSORT, see the following for information on how to determine your level:
ibmmainframes.com/viewtopic.php?t=33389
If you don't have PTF UK90013, ask your System Programmer to install it (it's free). |
|
Back to top |
|
|
byearun
New User
Joined: 25 Jul 2005 Posts: 17
|
|
|
|
It seems the above mentioned package was not installed in our system. We have asked to install the same. Anyways thanks to Anuj, Dick and Frank. |
|
Back to top |
|
|
|