IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to check the given dataset is empty


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
SIVAMAIN

New User


Joined: 24 Jun 2006
Posts: 12

PostPosted: Tue Jun 27, 2006 3:46 pm
Reply with quote

HI,

HOW TO CHECK WHETHER THE GIVEN DATASET IS EMPTY (OR) NOT THROUGH JCL ? GIVE THE CODE IN DETAIL ?
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Tue Jun 27, 2006 3:54 pm
Reply with quote

HI,

Following poast may give answer of your question.

http://ibmmainframes.com/viewtopic.php?t=11120&highlight=print

Thanks & Regards
Rupesh
Back to top
View user's profile Send private message
SIVAMAIN

New User


Joined: 24 Jun 2006
Posts: 12

PostPosted: Fri Jul 07, 2006 10:44 am
Reply with quote

Hi Rupesh ,
thanks that was very useful

thanks®ards

siva
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Fri Jul 07, 2006 3:13 pm
Reply with quote

Hi,
Its discussed a number of times in this forum.

But, for your ready reference , here is the JCL code.
Code:

//TTYAATAK JOB ,CLASS=I,MSGCLASS=X,NOTIFY=&SYSUID                       
//*********************************************************************
//* FILE NOT EXISTING :  RC = 12                                       
//* EMPTY FILE        :  RC = 04                                       
//* DATA FILE         :  RC = 00                                       
//*********************************************************************
//STEP010  EXEC PGM=IDCAMS                                             
//SYSUDUMP DD SYSOUT=C                                                 
//SYSOUT   DD SYSOUT=*                                                 
//SYSPRINT DD SYSOUT=*                                                 
//FILEIN   DD DSN=TTYA.TEST.FILE1,DISP=SHR                             
//SYSIN    DD *                                                         
  PRINT INFILE(FILEIN) -                                               
      CHARACTER COUNT(1)                                               
/*                                                                     
//*                                                                     
**************************** Bottom of Data ****************************   
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Allocated cylinders of a dataset DB2 12
Search our Forums:

Back to Top