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
 
Cross memory sharing in Batch

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Cross memory sharing in Batch
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: 8201
Location: Dubuque, Iowa, USA

PostPosted: Thu Jul 14, 2011 6:45 pm    Post subject:
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: 2504
Location: Atlanta, Georgia, USA

PostPosted: Thu Jul 14, 2011 11:14 pm    Post subject: Reply to: Cross memory sharing in Batch
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

http://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    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 CA Intertest Batch 555shanth CA Products 0 Tue Nov 28, 2017 11:10 am
No new posts How to query MAXGENS of an existing P... Chuchulo Hatyzak JCL & VSAM 4 Wed Nov 22, 2017 10:23 pm
No new posts sharing PLI storage Pedro PL/I & Assembler 2 Mon Oct 16, 2017 10:11 pm
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 6 Fri Sep 15, 2017 9:20 am

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