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
 
Memory sharing between batch programs

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Antonio Barata
Warnings : 1

New User


Joined: 04 Apr 2007
Posts: 37
Location: Lisbon, Portugal

PostPosted: Thu May 29, 2008 9:13 pm    Post subject: Memory sharing between batch programs
Reply with quote

hello
Is there any way of allocating, changing and sharing memory areas between Cobol programs on a batch environment?
In CICS you have CWA and some other areas. I am looking for an equivalent for Batch.
I don't know if it is possible, under Language Environment and z/OS V1R7.0

Can anyone help please?

Thanks

António Barata
Back to top
View user's profile Send private message

Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2504
Location: Atlanta, Georgia, USA

PostPosted: Fri May 30, 2008 12:14 am    Post subject: Re: Memory sharing between batch programs
Reply with quote

Sharing of storage (not concurrently) is possible using the LE Callable Get-Storage routine CEEGTST or an MVS GETMAIN with either one acquiring storage at the start of the JOB. Then, each successive step of this single JOB can use/reuse this storage, providing the address is passed to each step. At JOB termination, this storage is automatically freed.

Could you let us know why you would need this?

Regards,

Bill
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Fri May 30, 2008 12:30 am    Post subject: Reply to: Memory sharing between batch programs
Reply with quote

are You looking for some kind of cross memory data sharing ??
Back to top
View user's profile Send private message
Antonio Barata
Warnings : 1

New User


Joined: 04 Apr 2007
Posts: 37
Location: Lisbon, Portugal

PostPosted: Fri May 30, 2008 4:01 am    Post subject: Re: Memory sharing between batch programs
Reply with quote

Bill O'Boyle wrote:
Sharing of storage (not concurrently) is possible using the LE Callable Get-Storage routine CEEGTST or an MVS GETMAIN with either one acquiring storage at the start of the JOB. Then, each successive step of this single JOB can use/reuse this storage, providing the address is passed to each step. At JOB termination, this storage is automatically freed.

Could you let us know why you would need this?

Regards,

Bill


Well, I work in a Bank and, by midnight we need to change the processing date (not the system date).
Operations that have been done in the previous day, should assume this change as soon as this happens.
The batch processes we have, in order to avoid additional I/O, read the date from a DB2 table and, keep in memory until the end.
The idea is that at a specific time a signal routine will set up a signal in memory so that, any running process (Cobol program), not necessarily in the same JOB, can access it and check if the processing date has already changed so, it may read the new one, without the need for additional I/O.

Thanks

António
Back to top
View user's profile Send private message
Antonio Barata
Warnings : 1

New User


Joined: 04 Apr 2007
Posts: 37
Location: Lisbon, Portugal

PostPosted: Fri May 30, 2008 4:05 am    Post subject: Re: Reply to: Memory sharing between batch programs
Reply with quote

enrico-sorichetti wrote:
are You looking for some kind of cross memory data sharing ??


I think that it is something like that.
I have been looking around at Environment Variables that application programs can set, so that other processes can access it and read it but so far, I couldn't find out anything or the way to do it.
At least in the Operating System release that we are using.

Thanks

António Barata
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri May 30, 2008 4:19 am    Post subject:
Reply with quote

Hello,

How often is this data referenced? If it is quite frequently, retrieving it from a db2 table might not generate additional i/o - it would remain in a buffer due to the frequent use.
Back to top
View user's profile Send private message
Antonio Barata
Warnings : 1

New User


Joined: 04 Apr 2007
Posts: 37
Location: Lisbon, Portugal

PostPosted: Fri May 30, 2008 3:09 pm    Post subject:
Reply with quote

dick scherrer wrote:
Hello,

How often is this data referenced? If it is quite frequently, retrieving it from a db2 table might not generate additional i/o - it would remain in a buffer due to the frequent use.

I think that could be a solution.
It would be necessary only after a specific time and, I think that not so often as that.
I will try to see if it works

Thanks
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts sharing PLI storage Pedro PL/I & Assembler 2 Mon Oct 16, 2017 10:11 pm
No new posts pointers on using USS and C programs. Pedro All Other Mainframe Topics 0 Wed Oct 04, 2017 4:38 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Generate public-private key in batch ... vasanthz All Other Mainframe Topics 3 Fri Sep 15, 2017 9:20 am
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am

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