Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 2502
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: 10231
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 MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm
No new posts Why myself doing Package Bind always ... Susanta DB2 5 Thu Mar 02, 2017 10:47 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us