i need to convert this particular piece of code using sort utility. i am facing problem in understanding outrec control statement with respect to this. Kindly explain how cani use outrec control statement here?
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
What is the RECFM and LRECL of your DD01 data set? Is it VB?
What is the RECFM and LRECL of your DD01O data set? Is it VB or FB?
I don't know the FileAid language so I don't know how to interpret these FileAid statements.
What does RDW=3 mean? I googled it and it found "field offset starts at 1". Does that mean position 5 after the RDW is actually referred to as 1 rather than 5, or does it mean something else?
MOVE=(1,6,8),MOVE=(7,40,29), etc - I googled this and found that it is equivalent to 1:8,6,7:,29,40,etc. But I don't know if position 8 counts the RDW (in which case 8 is right) or doesn't count the RDW (in which case position 12 would be right).
Assuming that you're trying to convert from VB to FB/80 and your input positions do not count the RDW, the DFSORT job would be something like this:
Both the files are FB. i am trying to select few needed fields from the file and copy only those selected onto another file so as to load them into db2. hence this excercise. this was working fine until my org decided to do away with fileaid.
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:
kindly excuse me. i just now figured out that my input file is VB DCB=(LRECL=1277,RECFM=VB,BLKSIZE=0). and my output file has to be a fb with only selected fields.