A VSAM file has records of length 80.The record structure is as follows:
(the file has 100000 records)
Emp-id(5),Filler(1),Empname(20),Filler(1),Empaddr(30),Filler(1),PostalID(5),Filler(1),Areaname(10),Filler(1),Deptid(5)
Now I need to remove all fillers and increase my empaddr to 35.The final structure should look something like this:
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
Sort topics for the SYNCSORT product are to be posted in the JCL Forum with the word "SYNCSORT" used somewhere in the Subject line. You should try to also indicate the release of the product you're using.
Sort topics for the the DFSORT product are to be posted in the DFSORT/ICETOOL Forum.
You provided most of the necessary details, although you didn't mention what type of VSAM file (ESDS, RRDS, KSKS) this is referring to. That is an important detail. Also, please try to not use the "COBOLEASE" since not everyone is familiar with COBOL field definitions and terminology. Offsets and field types would be better.
Sort topics for the SYNCSORT product are to be posted in the JCL Forum with the word "SYNCSORT" used somewhere in the Subject line. You should try to also indicate the release of the product you're using.
Sort topics for the the DFSORT product are to be posted in the DFSORT/ICETOOL Forum.
I am not aware of SYNCSORT yet.I could have surely posted it in DFSORT,if I knew the best way is DFSORT to achieve it.
Quote:
You provided most of the necessary details, although you didn't mention what type of VSAM file (ESDS, RRDS, KSKS) this is referring to. That is an important detail.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
rsingh,
Here's a DFSORT job that will do what you asked for. Since the input is a VSAM file, we use RECORD TYPE=F to tell DFSORT to process it as fixed-length records. Note that if the output is a KSDS, the location of the keys must correspond to what was defined for the file.
1ICE143I 0 BLOCKSET COPY TECHNIQUE SELECTED
ICE250I 0 VISIT www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AND MORE
ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 06:57 ON THU JUL 30, 2009 -
0 OPTION COPY 00060011
RECORD TYPE=F 00061004
INREC BUILD=(1:1,5,6:7,10,17:18,10,28:29,15,34:40,5) 00070011
$
ICE104A 0 INVALID INREC OR OUTREC STATEMENT OPERAND
ICE012A 2 MISSING FIELDS OPERAND DEFINER
ICE751I 0 C5-BASE C6-BASE C7-BASE C8-Q83041 E7-BASE
ICE052I 3 END OF DFSORT
Note: the format of records given is the actual input data format which i have used,which is different from the record discussed in previous post.Hope this doesn't effect the analysis much.
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
rsingh,
Support for BUILD operator for z/OS DFSORT V1R5 PTF UQ95214 is made available in December, 2004. It is been almost 5 years and your shop is way behind updating the DFSORT. Talk to your systems programmers and get updated to the latest PTF.