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 What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am


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