Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


We are using 2 files , file one has data, file two is
empty.Using jcl how can we find the other file is empty?

Answers were Sorted based on User's Feedback



We are using 2 files , file one has data, file two is empty.Using jcl how can we find the other fil..

Answer / mchava

using IDCAMS utitlity

Print infile(file name) count(1)

it will check whether the file is empty or not

Is This Answer Correct ?    14 Yes 0 No

We are using 2 files , file one has data, file two is empty.Using jcl how can we find the other fil..

Answer / sundar

Using IDCAMS utility

In SYSIN:
PRINT(infile) COUNT(1)

If this step return 4 then the file is empty otherwise if
return 0 then the file is not empty.

Is This Answer Correct ?    10 Yes 0 No

We are using 2 files , file one has data, file two is empty.Using jcl how can we find the other fil..

Answer / sham

using idcams and its command print we can find wheather the
fiel is empty or not

Is This Answer Correct ?    8 Yes 1 No

We are using 2 files , file one has data, file two is empty.Using jcl how can we find the other fil..

Answer / raghu

This can be done using ICETOOL.
//STEP1 EXEC PGM=ICETOOL
//IN DD DSN=……input file1
//TOOLMSGDD SYSOUT=*
//DFSMSG DD SYSOUT=*
//TOOLIN DD*
COUNT FROM(IN) EMPTY
/*

In the above JCL, Input file1 is empty. If we run this JCL
it will retrun NON-ZERO retrun code.
adv: It will be very helpful when we want to run some steps
after checking a particular file is empty or not.

Is This Answer Correct ?    8 Yes 1 No

We are using 2 files , file one has data, file two is empty.Using jcl how can we find the other fil..

Answer / bala

Compare the file with another known empty file. IEBCOMPR
comparison of two empty files should give non empty RC.

Is This Answer Correct ?    6 Yes 3 No

We are using 2 files , file one has data, file two is empty.Using jcl how can we find the other fil..

Answer / vinay sonar

Print the contents of file using IDCAMS utility if it is
empty you will get MAXCC 4

Is This Answer Correct ?    2 Yes 0 No

We are using 2 files , file one has data, file two is empty.Using jcl how can we find the other fil..

Answer / rajesh_m13

stepname exec vsamempt=yes
that shows empty file

Is This Answer Correct ?    2 Yes 1 No

We are using 2 files , file one has data, file two is empty.Using jcl how can we find the other fil..

Answer / deepak dada, jaipur

the handling would happen


if the file is empty then pass the zero to return code in
cobol program

then go to jcl step and check for the conditiom code( 0,
eq) where the program is getting called and do whatever you
want to do

Is This Answer Correct ?    0 Yes 3 No

We are using 2 files , file one has data, file two is empty.Using jcl how can we find the other fil..

Answer / deepak dada, jaipur

the handling would happen


if the file is empty then pass the zero to return code in
cobol program

then go to jcl step and check for the conditiom code( 0,
eq) where the program is getting called and do whatever you
want to do

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More JCL Interview Questions

What is DATACOM db?

2 Answers  


How to resolve the error "WER488A JOIN CAPACITY EXCEEDED" I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem? I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem?

1 Answers  


Can you delete the GDG base without deleting GDG generations ?

7 Answers   Cap Gemini,


Is CPU time assigned to a JOB and JOBSTEP BOTH, by default ?

4 Answers   IBM,


Suppose i have 2 steps in my pgm. Step1- creates a file, Step2 - generates report from file in step1, What changes have to be made in Step2, so that if the file in Step1 is empty Step2 should not be executed? No changes to be made to Step1.

4 Answers   TCS,


how can handle the s0c4 abend???

3 Answers  


how to allocate a dynamic dataset in jcl ?

3 Answers   Patni, TCS,


can we modify the code in copy book? if it possible how to submit ofter the modification.

3 Answers   IBM, L&T,


what is a null indicator in db2?

5 Answers   Fiserv, IBM,


Suppose I have a file with three fields with data in the following format 1. empid - S9(4) COMP 2. empname - X(20) 3. empsal - S9(5)V(2) COMP-3 If I view this file, it will not be in a readable format. How to display the empid and empsal fields in a readable format without using COBOL program? What kind of SORT card will have to be coded?

4 Answers  


What is the significance of addrspc parameter in exec statement?

0 Answers  


what is DD statement is used in JCL?

0 Answers  


Categories