ID empty file via JCL
-
- Posts: 1
- Joined: Mon Jul 30, 2007 10:00 pm
- Skillset: COBOL, JCL, CICS, VSAM, ~DB2, ~EZ-Trieve
- Referer: Google
- Location: Columbus, Ohio
ID empty file via JCL
Is there a way, via JCL, to identify that a given input (QSAM) file is empty?
Re: ID empty file via JCL
Only if you consider running a utility against it to open the file as "via JCL".......
- Frank Yaeger
- Global moderator
- Posts: 1079
- Joined: Sat Jun 09, 2007 8:44 pm
- Skillset: DFSORT, ICETOOL, ICEGENER
- Referer: Search
- Contact:
Re: ID empty file via JCL
If by "identify" you mean pass back a non-zero return code, you can use the technique described in the "Set RC=12 or RC=4 if file is empty, has more than n records, etc" Smart DFSORT Trick at:
http://www.ibm.com/servers/storage/supp ... vs/tricks/
If that's not what you mean by "identify", then please explain what you do mean.
http://www.ibm.com/servers/storage/supp ... vs/tricks/
If that's not what you mean by "identify", then please explain what you do mean.
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort