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
 

 

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: 8055
Location: East Dubuque, Illinois, 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: 2502
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 HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm
No new posts Batch job tuning sgandhla Testing & Performance analysis 5 Fri Mar 24, 2017 9:41 pm
No new posts MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 5 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


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