Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Fri May 13, 2011 11:44 am Post subject:
shash_modi,
I am not sure as to why you posted this question in Interview Q&A forum. I see that you are using DISP=OLD on your output JCL. How about deleting it and allocating it before you run the job and make sure it is empty.
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
Posted: Fri May 13, 2011 11:46 am Post subject:
that and the fact that the input file has the same dsn as the output.
actually the above statement is not true. there are two different files.
but what bothers me,
the reference name for SORTOUT does not exist.
does not sort look for SORTOUT as the reference name of the file for the output of sort if there is not one mentioned in an outfile statement.
Suggest the TS change the reference name of the dd statement for
TECH301.SORTOU
from SORTOU to SORTOUT _________________ Dick Brenholtz
American living in Varel, Germany
Last edited by dbzTHEdinosauer on Fri May 13, 2011 12:38 pm; edited 2 times in total
I am not sure as to why you posted this question in Interview Q&A forum. I see that you are using DISP=OLD on your output JCL. How about deleting it and allocating it before you run the job and make sure it is empty.
Kolusu
Hi Kolusu,
Thanks for the response.
Sorry for posting in the wrong section. What's wrong in using the DISP=OLD? I can used it, right. The point which is disturbing me is that why the SORT is not giving me the desired result? Is there is something to be related to the msg "Alternate Parm Used".
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Fri May 13, 2011 1:09 pm Post subject:
shash_modi,
Even though you are using syncsort I am gonna answer it.
You need to understand the concept of Variable Block (VB) Files and how it differs from Fixed Block (FB) files.
Since your input is VB your actual data starts at pos 5 ( first 4 bytes is the RDW) and you are sorting on RDW which is the reason for your wrong results. Change your sort fields to 5,4,ch,a and see how the right results show up _________________ Kolusu
www.linkedin.com/in/kolusu
Even though you are using syncsort I am gonna answer it.
You need to understand the concept of Variable Block (VB) Files and how it differs from Fixed Block (FB) files.
Since your input is VB your actual data starts at pos 5 ( first 4 bytes is the RDW) and you are sorting on RDW which is the reason for your wrong results. Change your sort fields to 5,4,ch,a and see how the right results show up
It is working fine... Superb.... Thanks very much Kolusu....
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum