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

GDGs can be CREATED (not COPIED) only on DASD and NOT on tape drives ? Is it True ?

2 Answers   ABC, IBM,


How do you check the syntax of a JCL without running it?

17 Answers  


which utility is used to sort a file in jcl?

0 Answers   IBM,


What is a Generation Data Group (GDG)?

2 Answers  


Which statement is used to identify the private libraries in job?

0 Answers  


how can we pass external data to instream procedures

5 Answers   IBM, Infosys, Ocwen,


How dummy is used in jcl?

0 Answers  


how to execute the last 5 steps in jcl

2 Answers   Syntel,


I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK

0 Answers   IBM,


What is the meaning of the following declaration : DCB=BLKSIZE=, What is the difference between above declaration & not specifying DCB at all for a output file?

1 Answers  


I've one sequential file, that file size is LREC=100 (File contain Records like 1 to 100). Now I was increase the file size is LREC=102. My question is I want insert 00 (Two Zeros) in to the new file (That output file looks like : 00123 up to 100). How will write the SORT card in JCL. Please let me know.

2 Answers   Syntel,


Is acct parameter mandatory?

0 Answers  


Categories