MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Enterprise COBOL - External Data Access

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
vattikonda
Beginner


Joined: 09 Jan 2003
Posts: 15
Topics: 5

PostPosted: Fri Oct 31, 2003 12:43 pm    Post subject: Enterprise COBOL - External Data Access Reply with quote

We are considering migrating our current application that is written in PL/I Ver. 2 Release 3 to Enterprise COBOL. We would like to go to an architecture similar to that we have in PL/I with EXTERNAL STATIC to minimize the amount of data transfer. Please let me know if there is a way I can address the data location in Enterprise COBOL and access it from various programs without passing on the actual data area using the Linkage section.

Example:
Prog A - Has the data and the address to the data location coded within Linkage Section

Prog B - When called, reads the required data and updates the information based on the address location (In other words, the data if referred in Prog A or any other Program will reflect the change made by Prog B).

Thanks,
Giri
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Fri Oct 31, 2003 1:07 pm    Post subject: Reply with quote

Vattikonda,

You can use EXTERNAL clause to allow separately compiled programs and methods (including programs in a batch sequence) to share data items.

check this link which explains Sharing data by using the EXTERNAL clause

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3PG10/4.2.5?DT=20020923143836

check this link which explains Sharing files between programs (external files)

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3PG10/4.2.6?DT=20020923143836

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vattikonda
Beginner


Joined: 09 Jan 2003
Posts: 15
Topics: 5

PostPosted: Sat Nov 01, 2003 10:03 am    Post subject: Reply with quote

Thanks Kolusu. As always you are the best.

Cheers,
Giri
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group