Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Running COBOL EDIT MACRO in EDIT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
JPVRoff

New User


Joined: 06 Oct 2009
Posts: 27
Location: Melbourne, Australia

PostPosted: Thu Oct 18, 2012 12:10 pm    Post subject: Running COBOL EDIT MACRO in EDIT
Reply with quote

We have a COBOL application that issues an ISPF EDIT command. We then have a COBOL EDIT MACRO that can be called while in EDIT, and we are having storage exhaustion below the line occurring.

The problem seems to be that the initial COBOL RUN UNIT is swapped out when we CALL ISPF EDIT, and then when the COBOL EDIT MACRO is invoked a new COBOL RUN UNIT is setup. This means none of the existing loaded COBOL programs with their current storage and files (etc.) are available and so are re-fetched and setup.

We are able to pass the address of the storage from the initial COBOL RUN UNIT to the COBOL EDIT MACRO RUN UNIT and gain access to storage, however all file threads that are open (etc.) are not available (i.e. we have a common COBOL I/O routine access VSAM FILES), so out call to the I/O routine must re-OPEN another thread to any files (etc.)

We assume we must investigate Language Environment (LE) to find if there is a way to either keep the original COBOL RUN UNIT in place during the ISPF EDIT, or re-acquire it when the COBOL EDIT MACRO begins?

Can anyone help point to the right manual/section on how to proceed?
Back to top
View user's profile Send private message

Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2086
Location: Silicon Valley

PostPosted: Fri Oct 19, 2012 1:24 am    Post subject: Reply to: Running COBOL EDIT MACRO in EDIT
Reply with quote

I do not know COBOL or LE... there are several components in the software stack and I normally think that the user written portion is suspect.

There are two parts to your application. Can you run the editor macro withOUT the first part? I would try that first to make sure the program is correctly written to run in that environment.

Or even try to simplify the test with a 'hello world' editor macro written in COBOL.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts How to Run Rexx Macro? Kalaivignesh CLIST & REXX 5 Fri Sep 01, 2017 9:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us