|
|
| Author |
Message |
Ravi gaur
New User
Joined: 12 Jul 2005 Posts: 44
|
|
|
|
CAN ANY BODY HELP ME ASAP ..
IS THERE ANY WAY OF CHECKING EMPTY DATASET BEFORE TRANSMITTING IT..... |
|
| Back to top |
|
 |
References
|
Posted: Thu Aug 04, 2005 3:39 pm Post subject: Re: HOW TO CHECK FOR THE EMPTY DATASET |
 |
|
|
 |
KMK
New User
Joined: 29 Jul 2005 Posts: 18
|
|
|
|
| You can use SELCOPY to find the empty file |
|
| Back to top |
|
 |
ideas
Active User
Joined: 25 May 2005 Posts: 54 Location: India
|
|
|
|
| use VERIFY cmd. |
|
| Back to top |
|
 |
Ravi gaur
New User
Joined: 12 Jul 2005 Posts: 44
|
|
|
|
KMK :-- SELCOPY IS A THIRD PARTY VENDOR AND IT NEED TO BE INSTALL FOR THIS.. SO THIS IDEA FAIL.
IDEAS :-- YOUR IDEA IS GOOD WITH THE VSAM NOT WITH THE NON-VSAM DATASETS....
CORRECT ME IF I AM WRONG |
|
| Back to top |
|
 |
die7nadal
Active User
Joined: 23 Mar 2005 Posts: 148
|
|
| Back to top |
|
 |
kumar_ngl Warnings : 1 Active User
Joined: 05 Aug 2005 Posts: 51 Location: chennai
|
|
|
|
hay help me buddy,
where to implement that verify command to know whether the VSAM file is emply r not
kumar.p.v |
|
| Back to top |
|
 |
die7nadal
Active User
Joined: 23 Mar 2005 Posts: 148
|
|
|
|
| I wud be interested to see a VERIFY cmd find if the VSAM is empty or not, bcos I have never seen that. |
|
| Back to top |
|
 |
die7nadal
Active User
Joined: 23 Mar 2005 Posts: 148
|
|
|
|
The following can be used for both VSAM and nonVSAM DS, I have copied this from the link shown above.
| Code: |
//STEP0001 EXEC PGM=IDCAMS
//IN DD DSN=thedataset.to.check,...
//SYSPRINT DD SYSOUT=*
//SYSIN DD DATA
PRINT INFILE(IN) COUNT(1)
/*
RC=0 if file has at least 1 record, otherwise RC=4. |
|
|
| Back to top |
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3014 Location: Charlotte,NC USA
|
|
| Back to top |
|
 |
ajayvamsi Currently Banned Active User
Joined: 21 Jul 2005 Posts: 61 Location: Hyderabad
|
|
|
|
| please can anyone tell me where I need to place the verify command in teh JCL |
|
| Back to top |
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3014 Location: Charlotte,NC USA
|
|
| Back to top |
|
 |
|
|