Here is my requirement:
I have two input files
input 1: length 38 bytes
input 2: length 1 byte (Basically its a data card having value from 1-9)
I need to compare the (21,1,ch) of input 1 with (1,1,ch) of input 2 and include only those records (of the file input 1) in the output file whose key matches with the key of the record in file input 2.
How can this be done using sort or ICETOOL.
Can my requirements be done using SORT CARD??
Are you always going to have 1 record in the 1 byte file or is it possible to have multiple records? If you can have multiple records in the 1 byte file, please show an example of input records and expected output.
Remember the idea is for you to find and amend a sort deck which can take a single record file (or the first record of a multi-record file) and from the contents of that generate the symbol/SYMNAMES for the step that is doing the work.
Let's see how long it takes to find one, starting, now...
OK, I knew where to look, how to use the search on the DFSORT forum, or the SEARCH on the top of each page. But, it is not difficult to get practice of. Then next time, you might find the solution all on your own, and two days faster than doing it this way.
We don't mind, we don't get paid either way. But learning how to get to what you want is a valuable skill which will benefit you time and again in your career.
Now, do you want me to fix the code up for you? Or do you want to do it yourself? Get the buzz you get from that? Having done it yourself, have it in the back of your mind for other solutions? Wonder what SYMNAMES are and look them up and find out what they can do for you?
Or do you want to sit there and moan mildly that no-one has made the complete code for you yet, even though you've had all the "hints" necessary?
@Bill: As mentioned in my last comment, I am trying it on my end as well. You should not have assumed that people just post and sit idle waiting for reply. May be you are experienced in handling sorting problems, however this is not an appreciable way to welcome new members who are willing to learn something from good teachers like you.
Anyways, let's not get into war of words. I just made that comment to you to let you know my scenario. Thanks a lot for your efforts.