Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
I was struck up while comparing a comp-3 value from the input file and based on that value, i should write it in one of the output file.
I have a comp-3 value @ 19th position of declaretion S9(9)v99.
Now i need to check the value. If the value is less that 1000,000, i should be writing to one output file. Else into another.
could anybody help me with the sort card??
S9(9)v99 COMP-3 is a 6-byte PD value with two decimal places (implied). Externally an example of the value might be +123456789.01 or -123456789.01. You say you want to compare it to 1000,000. It's not clear exactly what constant you mean by that. Do you mean +001000000.00 or something else?
But what if the value is a negative which is less than -10000.
Can't we compare the value including the sign?
PD values are signed. You can use a negative constant in the INCLUDE statement (-n).
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: