what is a cataloged procedure ?
Answer / shakila vinayagam
A procedure that you catalog in a library is called a
cataloged procedure.
A cataloged procedure may consist of these JCL statements:
CNTL, command, DD, ENDCNTL, EXEC, IF/THEN/ELSE/ENDIF,
INCLUDE, OUTPUT JCL, and SET. Optionally, a cataloged
procedure can begin with a PROC statement and end with a
PEND statement. If coded, PROC must be the first statement
in the procedure.
The library containing cataloged procedures is a
partitioned data set (PDS) or a partitioned data set
extended (PDSE). The system procedure library is
SYS1.PROCLIB. The installation can have many more procedure
libraries with different names. You can also have
procedures in a private library. The name of a cataloged
procedure is its member name or alias in the library.
When a cataloged procedure is called, the calling step
receives a copy of the procedure; therefore, a cataloged
procedure can be used simultaneously by more than one job.
| Is This Answer Correct ? | 5 Yes | 1 No |
How to submit multiple jobs. These jobs are members in PDS. The second job should run if the first job runs successfully and so on.
When cursor is not closed what is the error?
i have two flat files.i want to select one record from that file by using jcl.for example file1 contains emp no,name,joining date. file2 has same details.emp no is primary key. i will give empno.that emp details send to outfile.please let me know if any one knows it.give sample code.
i want to restart frm step 2, previously i coded cond parameter on step2 wht happens at tht time ?
What is the parameter to be passed in the job card for the unlimited time , irrespective of the job class ?
File1 has 100 records and file2 has 200 records i want to copy 50 records which r in both file into file3
What is the difference between BLKSIZE and LRECL?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
If a job has 3 steps and step 1 and step 3 should get executed and step 2 should not get executed irrespective of the return code from the previous steps. How can it be done?
One dataset is creating in the step1 with LRECL of 133 and the same dataset is used in the next step in DISP=SHR mode, but while scanning the JCL the following error is thrwon. Please verify the below JCL $/SEPP030.PROVIDER DD DSN=Z1225BT.F5750PG9.F5910PRV.QC#A6868 //ERRORRPT DD DSN=F5910&ST&IN..F5910EPP.ERRORRPT.P&CYCDATE, --ERRORRPT DD DSN=F5910PG.F5910EPP.ERRORRPT.P, // DISP=&DISNCD,UNIT=&DELQ, -- DISP= (NEW,CATLG,DELETE),UNIT=DELQ, // SPACE=(TRK, (30,15),RLSE), // DCB=&DCB2 -- DCB= (PPG.METMODEL,BLKSIZE=0,LRECL=133,RECFM=FB) $/SEPP030.ERRORRPT DD DSN=Z1225BT.F5910EPP.ERRORRPT.AOUTPUT //SEPP040 EXEC PGM=FILEAID,COND= (0002,EQ,SEPP030) //SYSPRINT DD SYSOUT=* //SYSLIST DD SYSOUT=* //DD01 DD DSN=SYSCMN.PROD.CCLIB (F5910EP1),DISP=SHR $/SEPP040.DD01 DD DSN=Z1225BT.TEST.CCLIB (F5910EP1) E1 - DSS20791E - DATA SET 'Z1225BT.F5910EPP.ERRORRPT.AOUTPUT' HAS AN LRECL OF 133 COULD NOT BE OPENED BECAUSE THE CODED LRECL WAS 80. // DD DSN=F5910&ST&IN..F5910EPP.ERRORRPT.P&CYCDATE, -- DD DSN=F5910PG.F5910EPP.ERRORRPT.P, // DISP=SHR $/ DD DSN=Z1225BT.F5910EPP.ERRORRPT.AOUTPUT please find the error code in the above mentioned lines and please suggest me about the error and the solution for that.
What is order of searching of the libraries in a JCL?
What is the purpose of dd * statement in jcl?