We are using 2 files , file one has data, file two is
empty.Using jcl how can we find the other file is empty?
Answer Posted / 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 |
Post New Answer View All Answers
Is it possible to left uncode disp?
What is the format of comment statement?
What is the use of symbol // in jcl?
What are hierarchy levels in jcl?
Which statement is used to identify the private libraries in job?
What is the purpose of the dd keylen parameter?
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file
Can I share my data with other jobs? How?
//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
How do you access an uncatalogued dataset in a jcl?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
Is automatic restart possible in jcl?
how can you check if a file is empty using jcl?
What is the motivation behind coding class parameter in job statement?