|
View previous topic :: View next topic
|
| Author |
Message |
reachsenthilnathan
New User

Joined: 20 Nov 2005 Posts: 15
|
|
|
|
Hi,
Can a Batch program access a memory loaded by another batch program?
Problem statement:
We have a VSAM file which is used as lookup in many batch jobs. We are thinking of loading the entire VSAM file into memory using GETMAIN and use it in that job and in other jobs.
Solution tried:
Job A was written to load this VSAM into memory using GETMAIN and write the Pointer for the memory location in a file. Then Job A was put into a sleep mode.
Job B was intiated and used the pointer file written in Job A and tries to access that memory location and fetch the data. I got security violation (S0c4) error.
Have anyone tried this in the past and do you think it is possible? Also any other solution that you can think of for the problem statement described above? (I am reading about BLSR. But not sure whether it is in the same lines as my problem).
Thanks,
Senthil Nathan |
|
| Back to top |
|
 |
Robert Sample
Global Moderator

Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
| Quote: |
| Can a Batch program access a memory loaded by another batch program? |
In general, no. There are some programs that can use cross-memory services between address spaces (each batch job has its own address space) but this tends to be very advanced (and difficult, I understand) Assembler coding. BLSR does not share across address spaces -- it is for batch jobs that do a lot of direct reads. |
|
| Back to top |
|
 |
Bill O'Boyle
CICS Moderator

Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
The following link takes you to sites, where you can find the most comprehensive book (IMHO) for Advanced Assembler Language. It's been out of print for several years and this is why it commands the asking prices.
I have a copy and I'd never part with it....
isbn.nu/9780471361763
Bill |
|
| Back to top |
|
 |
|
|