|
View previous topic :: View next topic
|
| Author |
Message |
rambabu Currently Banned New 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 |
|
 |
ideas
New User

Joined: 25 May 2005 Posts: 52 Location: India
|
|
|
|
| use IDCAMS for this. |
|
| Back to top |
|
 |
Sangita
New User
Joined: 02 Jun 2005 Posts: 17
|
|
|
|
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 Developer

Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
| Back to top |
|
 |
ideas
New User

Joined: 25 May 2005 Posts: 52 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 |
|
 |
|
|