Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us