Hi,
I am having a doubt in cataloged Proc,
I have a cataloged Procedure which has 3 steps like
1. unloading a fileA,
2. COBBATDB - process using fileA,
3. Dummy out the fileA. moving dummy file to the fileA in order to make it as empty.
Now what I need to know is that can I add a step in between the existing steps thru calling jcl so that I can take the backup of fileA.
----
Actual intention is ' Can we add a step in proc thru calling jcl ? like we are over riding dd name, cond code JCL- Can we add steps also in the called proc'
Sorry if the above question doesn't make any development/business sense. Just wanted to know whether it is possible.
Doubt in Cataloged Procedure
Moderators: Frank Yaeger, DikDude, Moderator Group
Doubt in Cataloged Procedure
Guru:-)
You're never fully dressed without a smile
You're never fully dressed without a smile
No - you have to amend the procedure. You can add extra steps before or after but not in the middle. Actually, there is a way with your 3 stepper if you make the program name of the 3rd step a symbolic parameter. Change the default program name to the name of the program you want to execute 3rd (your backup program); override all relevant ddnames to either dummy or datasets that your new program wants; add extra JCL cards for ddnames that your program requires but are not in the procedure; add jcl for your original 3rd step at the end.
Regards
Nic
Nic
Thanks Nic for your suggestion.
I got one more suggestion as follow from one of my co-worker. That is,
in Calling jcl
Step01 exec caldproc, over ride the cond of step 3 as failing one,
step02 exec sort step to back up the FileA
step03 exec caldproc over ride the cond of step1 & 2 as failing and step 3 as EVEN.
I believe this will also meet the goal..!! Any suggestion/advice in this?
Thanks in advance!!
I got one more suggestion as follow from one of my co-worker. That is,
in Calling jcl
Step01 exec caldproc, over ride the cond of step 3 as failing one,
step02 exec sort step to back up the FileA
step03 exec caldproc over ride the cond of step1 & 2 as failing and step 3 as EVEN.
I believe this will also meet the goal..!! Any suggestion/advice in this?
Thanks in advance!!
Guru:-)
You're never fully dressed without a smile
You're never fully dressed without a smile
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page