I have an input file which is an FB LRECL as 80 and it has only one record which has a number of months like 03 in first 2 positions.
Now I need to read the value from the file and read another VSAM input file of LRECL 128 . Now include records from the file2 which has dates as current date-03(number read from file2). Date format is YYMM.
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
V S Amarendra Reddy,
The reason your job abended is because the symnames dataset should be FB and should have an LRECL of 80 bytes. your first step is not creating 80 byte symbol file.
Here is a DFSORT job which will give you the desired results
Thank you very much for the quick solution. But one important point to metion. my date in the VSAM file will be like YYMM (like 0810). So which format supports this means how u want me to change the code?
ICE000I 1 - CONTROL STATEMENTS FOR 5740-SM1, DFSORT REL 14.0
SORT FIELDS=COPY
INCLUDE COND=(1,4,Y2T,LT,Y'DATE2'-03)
$
ICE007A E SYNTAX ERROR
ICE052I 3 END OF DFSORT
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Note that DFSORT R14 and the z/OS releases it runs on (z/OS 1.4 and below) are no longer supported. Only z/OS DFSORT V1R5 (for z/OS 1.5 through 1.9) and z/OS DFSORT V1R10 (for z/OS 1.10) are currently supported. So your site is way behind the curve.