but it abend when executed with S0C7 abend code.
the information from JESYSMSG AS bellow:
IEF237I JES2 ALLOCATED TO SYSIN
IEA995I SYMPTOM DUMP OUTPUT
SYSTEM COMPLETION CODE=0C7 REASON CODE=00000000
TIME=09.10.32 SEQ=20916 CPU=0000 ASID=0031
PSW AT TIME OF ERROR 078D3000 87DC1C3E ILC 4 INTC 07
NO ACTIVE MODULE FOUND
NAME=UNKNOWN
DATA AT PSW 07DC1C38 - 901744F0 C2C69110 B0024780
the sysout form DFSORT IS:
ICE084I 0 EXCP ACCESS METHOD USED FOR SORTIN
ICE751I 2 EF-K10929 F0-K30362 DA-K28804
ICE185A 0 AN S0C7 ABEND WAS ISSUED BY DFSORT, ANOTHER PROGRAM OR AN EXIT (PHASE C 3)
PLEASE HELP ME PINPOINT why this can abend and how to resolve it,thanks a lot!!
Joined: 23 May 2008 Posts: 35 Location: beijing China
by the way.I am not very clear about what the difference between binary numbers and packed-decimal ,would you please give me some information about it ? thanks a lot!
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
haohao wrote:
by the way.I am not very clear about what the difference between binary numbers and packed-decimal ,would you please give me some information about it ? thanks a lot!
Refer to the COBOL Language Reference manual for complete descriptions of binary and packed decimal.
The numbers posted both appear to be binary (comp) rather than packed-decimal (comp-3).
As this file is to be downloaded to unis, i'd suggest you create the file as a tab-delimited file which is quite usable on unix. The tab character is x'05' if my memory hasn't already left the building
Good luck - someone will be here if there are questions.
when the value of the variable with s9(13)v9(3) comp format is positive,the conversion is well done,but when it comes with a negative ,the resule is completly wrong.
take a example:
the orginal value is:
it should be a negative number ,but after the convertion ,the result is: +46744073709483.086
it seems to omit the sign of the vlaue when doing the conversion.
Joined: 23 May 2008 Posts: 35 Location: beijing China
SO MUST I DO this in two separate SORT job step?
the original file is extraordinary big ,it may contains thirty million records.so I want do this job in one step to reduce the batch window.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Quote:
the sort doesn't function again
DFSORT "didn't function" because you did something wrong. But you haven't given any information on what "didn't function" means.
Did you get an error message? I so, show the messages you received.
Did you get different output then you expected? If so, show an example of the output you got and the output you expected.
If you mean something else by "didn't function", you need to give more details of what you mean.
By the way, the reason you needed to use OUTREC instead of INREC is because INREC is processed before SORT whereas OUTREC is processed after SORT. So with INREC, you changed the positions before you sorted and would need to use those reformatted positions for the SORT statement, whereas with OUTREC you changed the positions after SORT so you can use the input positions for the SORT statement.
Joined: 23 May 2008 Posts: 35 Location: beijing China
yeah,after I change to use the input positions for the SORT statement,it can work normally.
I am new to SORT,so there are to many concept is ambiguous to me.thanks everybody here give me those valuable information to solve my difficulty!
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:
is the binary representation of the negative number.
Second, the format 'BI' is unsigned binary, for proper negative usage, you should use 'FI'.
Hi,
I am facing same sign issue but my Data type is PD(Packed decimal). I am getting all the values as positive even negative values are also changed to Positive. Could any of you please help!