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 Posted / suga
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 ? | 10 Yes | 4 No |
Post New Answer View All Answers
What do you know about jcl?
which parameter is used to check the syntax of a jcl without executing it?
How can a fb file convert to vb file using sort program?
What do you understand by the term job time – out and how can you overcome that?
Explain the purpose of dd * statement in jcl?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
Is condition checking possible in jcl? If yes, how?
Are there any set of rules for the names of the steps used in a job?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
Is it possible to code instream data in a PROC?
How to override loadlib?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you
Is automatic restart possible in jcl? If yes, how?
1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat