ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  MainFrame  >>  IBM MainFrame  >>  JCL
 
 


 

 
 COBOL interview questions  COBOL Interview Questions
 JCL interview questions  JCL Interview Questions
 CICS interview questions  CICS Interview Questions
 DB2 interview questions  DB2 Interview Questions
 IMS interview questions  IMS Interview Questions
 IDMS interview questions  IDMS Interview Questions
 Natural interview questions  Natural Interview Questions
 ADABAS interview questions  ADABAS Interview Questions
 REXX interview questions  REXX Interview Questions
 Assembler interview questions  Assembler Interview Questions
 CLIST interview questions  CLIST Interview Questions
 QMF interview questions  QMF Interview Questions
 MVS interview questions  MVS Interview Questions
 OS390 interview questions  OS390 Interview Questions
 OS 2 interview questions  OS 2 Interview Questions
 VSAM interview questions  VSAM Interview Questions
 QSAM interview questions  QSAM Interview Questions
 Sysplex interview questions  Sysplex Interview Questions
 IBM MainFrame AllOther interview questions  IBM MainFrame AllOther Interview Questions
Question
How to test thru JCL if any file(PS or VSAM) is empty or 
not. I do not want to use any COBOL prog or Ezytrieve and 
want to do using utility.
 Question Submitted By :: Atul
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to test thru JCL if any file(PS or VSAM) is empty or not. I do not want to use any COBOL prog or Ezytrieve and want to do using utility.
Answer
# 1
u can use ams command repro thru idcams utility and check 
for rc
 
Is This Answer Correct ?    1 Yes 0 No
Ram G
 
  Re: How to test thru JCL if any file(PS or VSAM) is empty or not. I do not want to use any COBOL prog or Ezytrieve and want to do using utility.
Answer
# 2
Use comparex/ISRSUPC utility and compare ur file with an 
empty file of the same DCB parameter. Retrun code of 28 
means the file is empty. return code of 1 means the file is 
not empty.
 
Is This Answer Correct ?    0 Yes 0 No
Sivakumar
 
 
 
  Re: How to test thru JCL if any file(PS or VSAM) is empty or not. I do not want to use any COBOL prog or Ezytrieve and want to do using utility.
Answer
# 3
IFEMPTY utility is used to check the file is empty or not,
if the return code of this step is 4 then the file is empty.
 
Is This Answer Correct ?    1 Yes 2 No
Naren
 
  Re: How to test thru JCL if any file(PS or VSAM) is empty or not. I do not want to use any COBOL prog or Ezytrieve and want to do using utility.
Answer
# 4
you can use IEBPTPCH utility.it is used to check whether it 
is empty or not.If the return code is 4 then the file is 
empty.
 
Is This Answer Correct ?    0 Yes 3 No
Suga
 
  Re: How to test thru JCL if any file(PS or VSAM) is empty or not. I do not want to use any COBOL prog or Ezytrieve and want to do using utility.
Answer
# 5
By IDcams its is possible
// STEP EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//FILE1 DD DSN=INPUT-FILE,DISP=SHR
//SYSIN DD *
  PRINT INFILE(FILE1)
  DUMP COUNT(1)
/*
IF THE FILE IS EMPTY JCL GIVES RC=4
 
Is This Answer Correct ?    0 Yes 1 No
Vani
 
  Re: How to test thru JCL if any file(PS or VSAM) is empty or not. I do not want to use any COBOL prog or Ezytrieve and want to do using utility.
Answer
# 6
Hi vani,

When i tried executing ur JCL i am getting this error while 
giving JJ.

'DUMP' IS NOT A RECOGNIZED IDCAMS STATEMENT NAME

What shall i do????
 
Is This Answer Correct ?    0 Yes 0 No
Nagendra
 
  Re: How to test thru JCL if any file(PS or VSAM) is empty or not. I do not want to use any COBOL prog or Ezytrieve and want to do using utility.
Answer
# 7
First SORT the input file.
Assume the sorted o/p is in MY.SORT.FILE, then run this step

//CHEKEMTY EXEC PGM=IDCAMS                          
//SYSPRINT DD SYSOUT=*                              
//MYFILE   DD DSN=MY.SORT.FILE,DISP=SHR 
//SYSIN    DD *                                     
  PRINT INFILE(MYFILE) CHARACTER COUNT(1)  

if the above step returns a RC=4, then the file is 
empty
 
Is This Answer Correct ?    1 Yes 0 No
Deb
 

 
 
 
Other JCL Interview Questions
 
  Question Asked @ Answers
 
how will be submit 1 jcl by other jcl? means that how 'll submit one job by other job?? Steria2
If job is submitted with typerun = hold then how can we submit the same job? Wipro2
When should DISP=MOD is used?  2
if you have big pgm. during compilation is abends with (soc7)how do you know which line has soc 7 error. IBM3
What is STEPLIB, JOBLIB? What is it used for?  1
What does S0C4 error mean?  3
What you mean by skeleton JCl?  2
How many types of libraries are there in JCL ?  2
What is the DD statement for a output file?  2
How do you submit JCL via a Cobol program?  2
How to pass the temp dataset form one JOB step to another?  4
How do you submit a JCL under CICS environment ? Wipro4
What is a GDG? How is it referenced? How is it defined? What is a MODELDSCB?  2
How is the keyword DUMMY used in JCL?  3
What is the use of the utility DFSRRC00 in the JCL? Convergys2
What is the improvement to COND= in the latest version of MVS?  3
What do you do if you do not want to keep all the space allocated to a dataset?  2
If there are five steps in a JCL i have to execute the 3rd step, bypass the 4th step and execute the 5th step how do i do this? Convergys9
what is XSUM in some fields= none, xsum ?? Xansa6
Max generations in GDG?? Xansa12
 
For more JCL Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com