How to identify in JCL that an input file is empty without
reading it?
Answer Posted / mainframeking
Usinf IDCAMS we can check:
//step01 dd exec pgm=idcams
//sysprint dd sysout=*
//input dd dsn=file name to check, disp=shr
//sysin dd *
print infile(input)character count(1)
if return code is 0, file is not empty
if return code is 4, file is empty
| Is This Answer Correct ? | 17 Yes | 3 No |
Post New Answer View All Answers
What is the purpose of dd dummy statement?
Name the statement which can be used to send data to another mvs jes3 node?
what are the various stages of job processing?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
What is catelog procedure and how many catelog procedure to use in one job?
Is it possible to left uncode disp? If yes, how?
Can we use DISP=SHR in output file in JCL
how to run batch program without jcl?
What are s0c1, s0c4, s0c5, s0c7 and socb?
Name the parameters which can be used to limit the number of records written to a sysout dataset?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375
Explain dfsort utility?
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 you can access an uncataloged dataset in a JCL?