How to identify where file is empty or not? How many ways are
there to identifying?
Answer Posted / fred
There are so many ways this can be done.
DFSORT/SYNCSORT
ICETOOL/SYNCTOOL
IDCAMS
FILEAID/FILEMANAGER
IEBPTPCH
ISRSUPC
EASYTRIEVE
Using REXX checking with EXECIO / LISTDSI
Using SORT is the easiest:
//jobcard
//S010 EXEC PGM=SORT,PARM='NULLOUT=RC4'
//SYSOUT DD SYSOUT=*
//SORTIN DD DISP=SHR,DSN=<datasetname>
//SORTOUT DD DUMMY
//SYSIN DD *
SORT FIELDS=COPY
/*
-- RC 4 if Empty
RC 0 if there is data.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What are the rules employed while naming the steps in a job?
Does jcl support automatic restart?
What are the utility programs in jcl?
What is the function of the steplib dd statement?
what is use of disp parameter in dd statement?
In sms datasets, what is the function of the dd mgmtclas keyword?
how JCL works?
Explain the jcl exec statement?
what is the use of JCL?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
Explain the function of dd disp parameter?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
How dummy is used in jcl?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
Is it possible to left uncode disp?