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

Cross memory sharing in Batch


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
reachsenthilnathan

New User


Joined: 20 Nov 2005
Posts: 15

PostPosted: Thu Jul 14, 2011 6:32 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Thu Jul 14, 2011 6:45 pm
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


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

PostPosted: Thu Jul 14, 2011 11:14 pm
Reply with quote

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.... icon_wink.gif

isbn.nu/9780471361763

Bill
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Free space of a mulitvolume PS datase... TSO/ISPF 7
No new posts How to close Datacom MUF URT used by ... CICS 0
No new posts Activate WLM policy in batch All Other Mainframe Topics 2
No new posts MacKinney Batch to CICS upgrade causi... CICS 7
No new posts Run rexx in batch job CLIST & REXX 7
Search our Forums:


Back to Top