Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to check the given dataset is empty

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: How to check the given dataset is empty
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: 464

PostPosted: Tue Jun 27, 2006 3:54 pm    Post subject: Re: EMPTY DATASET
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    Post subject: Re:thanks
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us