Hi,
I want to copy data for a list of policies from a Tape file to a flat file. I can use a sort card but the sort card will be unnecessarily too long. I have a flat file having only the list of policies.
Can anyone guide me how can i Do this using the file instead of the job, Currently I am using JCL as follows:
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Some comments on your current job:
Remove the //SORTWKdd DD statements - work data sets are NOT needed for a COPY, so you're just wasting space.
You can rewrite your INCLUDE statement like this to make it simpler:
Code:
INCLUDE FORMAT=SS,COND=(9,7,EQ,
C'M291761,M293720,M294632,M294674,M295301,M295305,M500078')
If you want me to show you how to use DFSORT to select the records using a file with the policy numbers, show me an example of what the records in the policy file and the input file look like, and what you want the output records to look like. If the input file can have records with duplicate policy numbers, show that in the example. Also, what is the RECFM and LRECL of the policy file and the input file?