IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Running COBOL EDIT MACRO in EDIT


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
JPVRoff

New User


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

PostPosted: Thu Oct 18, 2012 12:10 pm
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

Global Moderator


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

PostPosted: Fri Oct 19, 2012 1:24 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts COBOL 6.4 - User Defined Function nee... COBOL Programming 1
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Running REXX through JOB CLIST & REXX 13
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top