Using sort, you can copy the VSAM file (with greater record length) into a flat file. Use the following code snippet. The outrec parameter in the sort card gives the length to be copied from the input. I have also used some sort conditions.
Joined: 17 May 2005 Posts: 27 Location: Pune, India.
where the filenames are accepted as a parameter to a cobol program.
Could you explain this, i couldn't get u here.
Also, Rajdeep's JCL creates a 'flat file' but u need a KSDS (of smaller LRECL). So u create a KSDS cluster of smaller LRECL using IDCAMS/File-Aid and then use REPRO to copy FLAT-FILE to the newly created cluster.