|
|
| Author |
Message |
rambabu Currently Banned Active User
Joined: 18 Apr 2005 Posts: 67
|
|
|
|
| how can i identify whther the file is empty or not?u tell me in both cases vsam and flat file? |
|
| Back to top |
|
 |
References
|
Posted: Mon Jun 13, 2005 2:48 pm Post subject: Re: How can I identify whther the file is empty or not |
 |
|
|
 |
ideas
Active User
Joined: 25 May 2005 Posts: 54 Location: India
|
|
|
|
| use IDCAMS for this. |
|
| Back to top |
|
 |
Sangita
New User
Joined: 02 Jun 2005 Posts: 13
|
|
|
|
Hi Ram,
You can use IDCAMS for the VSAM files or you check in the
DSLIST (3.4 OPT) ,%USED will be 0 for empty files.
Regards,
Sangita |
|
| Back to top |
|
 |
Frank Yaeger
DFSORT Moderator
Joined: 15 Feb 2005 Posts: 4392 Location: San Jose, CA
|
|
| Back to top |
|
 |
ideas
Active User
Joined: 25 May 2005 Posts: 54 Location: India
|
|
|
|
Hi Frank & Ram,
this is the outline..how IDCAMS can be used:
Step 1: copy the file to a temp file using IDCAMS utility
If file empty this step may throw a RC 08,
Set MAXCC = 04, if it greater than 00.
Step 2: Check the condition, if the RC of previous step is NOT equal to 00, bypass the step.
Thanks. |
|
| Back to top |
|
 |
|
|