Hello everyone,
I have started programming in easytrieve very recently. I have been using this forum till now as a reader. This would be my first post. I truly appreciate all the hard learned knowledge being shared.
I was able to successfully code two job statements separately within a single easytrieve program. Now, I am trying to transfer control from one job to another job inside the same easytrieve program. Is this possible?
I tried naming the job using NAME optional parameter. But I am lacking the knowledge to execute another job passing a key and retrieve the control back to the main job. I tried with GO TO statement. But I either get "B056 UNRESOLVED LABEL REFERENCE" or "B049 PARAMETER IGNORED" when using the job name before and after respective.
I am also wondering how to call an easytrieve subprogram. The manuals I read clearly state I can call subprograms in other languages. Does Easytrieve allow calling a subprogram written in Easytrieve? If yes, how should I go about LINKing the programs or should I use ENVIRONMENT NONE in my program?
Kindly help me on this.
Many thanks,
Sivaguru
Transferring control to another job in same easytrieve pgm
Moderators: DikDude, Moderator Group
So far, i've not seen 2 JOB statements in the same program. If there is some reason for 2 JOB statements, suggest you create 2 programs or write the code so that the files are read under program control rather than the JOB statement.
Read about LINK to "call" an Easytrieve module - i believe this will do what you want.
Read about LINK to "call" an Easytrieve module - i believe this will do what you want.
Have a good one
Hi Dik,
Thank you so much for ur response.
Please post a link where i can learn about linking another easytrieve program. I am unable to find it. I will try the functionality with ur suggestion.
BTW, is there a way we can reset the EOF set by the system to enable the program to read from the first record again in a PS file?
I must b implementing this logic in easytrieve.
Please advise.
Thanks very much,
Sivaguru
Thank you so much for ur response.
Please post a link where i can learn about linking another easytrieve program. I am unable to find it. I will try the functionality with ur suggestion.
BTW, is there a way we can reset the EOF set by the system to enable the program to read from the first record again in a PS file?
I must b implementing this logic in easytrieve.
Please advise.
Thanks very much,
Sivaguru
Thanks,
Sivaguru
Sivaguru
There is almost NEVER a good reason to start back at the beginning of a sequential file. Why does someone believe it is needed here?
The info about LINK is in the Easytrieve Documentation. If your organization is licensed to use the product, all of the material may be downloaded free from CA Support.
The info about LINK is in the Easytrieve Documentation. If your organization is licensed to use the product, all of the material may be downloaded free from CA Support.
Have a good one
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