View previous topic :: View next topic
|
Author |
Message |
mohnish
New User
Joined: 22 Sep 2006 Posts: 4
|
|
|
|
I've the following reqmnt.
Data from a VSAM file has to be extracted and put in a flat file. The VSAM file can be empty, say on weekends. If the VSAM file is empty, the flat file created should be empty as well.
What should be the approach to handle this requirement? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Try IDCAMS REPRO or copy the vsam to flat using SORT.
If you need to do this in a COBOL program, just open the output file and close it. The open/close of the output flat file will create an empty but usable file. |
|
Back to top |
|
|
|