View previous topic :: View next topic
|
Author |
Message |
ursprasanna Warnings : 2 New User
Joined: 15 May 2006 Posts: 20 Location: chennai
|
|
|
|
I have a small clarification...
A data set is created in the first step and after that some process is done
in the second step i want to know whether the data set is empty or non empty .
How could i check this .
thanks,
Prasanna subramaniam. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
vijayamadhuri
Active User
Joined: 06 Apr 2005 Posts: 180
|
|
|
|
Hi,
To see that the data set is empty or not u have to just browse the dataset if it contains data or not |
|
Back to top |
|
|
Nidhi_Bansal
New User
Joined: 17 May 2006 Posts: 4 Location: Noida
|
|
|
|
There are two ways,you can run step 1 and
1. manually check the dataset.
2. Run the job from step 2 after checking it for any syntactic errors. |
|
Back to top |
|
|
srikm
New User
Joined: 19 May 2006 Posts: 4
|
|
|
|
Hi
Run a IDCAMS utility
//step01 EXEC PGM=IDCAMS
//*
//INFILE DD DSN=KM.km.km,
// DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
PRINT INFILE(INFILE) COUNT(1)
/*
//
If RC =0 -> means dataset not empty
This will definately work
KMsrinivas
09880191795 |
|
Back to top |
|
|
callkris_cit
New User
Joined: 22 Apr 2006 Posts: 44
|
|
|
|
Hi,
To check a Particular dataset is empty, try to copy that file in to another output dataset using FILEAID utility.
If it gives the return code 8 then the dataset is empty.
Thanks
Suresh |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
Back to top |
|
|
|