View previous topic :: View next topic
|
Author |
Message |
peerless_guy4u
New User
Joined: 13 Jul 2006 Posts: 9
|
|
|
|
Hi,
This is regarding file access across the different LPAR's
Ex: If FILE X is resides of CICS region of LPAR 'A', Can we close and open the FILE X from job which we are running in it LPAR 'B'.
Thanks,
Alberto |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
You might be able to code up a job which does a ROUTE of the close job to the other LPAR, then run your program, then submit another ROUTE of the open job. I haven't tested this so I'm not sure how well it would work, and if the CICS region doesn't close the file promptly (due to a transaction running that reads/browses/updates the file) your program may abend if it is depending on the file.
However, it does sound like a lot of work -- what's your requirement? There may be an easier way depending on what you are actually trying to accomplish. |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
Quote: |
You might be able to code up a job which does a ROUTE of the close job to the other LPAR, then run your program, then submit another ROUTE of the open job. I haven't tested this so I'm not sure how well it would work |
This is used at my shop for selected CICS regions. The ROute of the CEMT command works fine. We don't use where long-running tasks might hold datasets open.
Garry. |
|
Back to top |
|
|
peerless_guy4u
New User
Joined: 13 Jul 2006 Posts: 9
|
|
|
|
Hi Robert,
Thanks for the inputs, The actual requirement is i need to close the file and load the data into the dataset and reopen the file.
But issue iam receiving the data in one LPAR and file resides on another LPAR
It would be great full if you provide be any feasible solution on this.
Can we transmit the file from one LPAR to another thru NDM job ? so that i can run the job in same LPAR. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If there is shared dasd between the lpars, there would be not need to transmit/duplicate the file.
Check with your storage admins to see if there is some shared dasd where this file could be placed and used as needed on both lpars. |
|
Back to top |
|
|
peerless_guy4u
New User
Joined: 13 Jul 2006 Posts: 9
|
|
|
|
Hi,
There is not such Shared LPAR DASD avaliable, So that i can use it across. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Garry says the ROUTE command can be used, so that's probably the best way to do what you're wanting. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Sorry, but it looks like i've confused myself. . . .
Re-reading this, i am not sure if the question is how to open a file that "lives" in another lpar or how to make a file from "this" lpar available to processing in another lpar
The topic subject not withstanding
Quote: |
The actual requirement is i need to close the file and load the data into the dataset and reopen the file.
But issue iam receiving the data in one LPAR and file resides on another LPAR |
|
|
Back to top |
|
|
genesis786
Active User
Joined: 28 Sep 2005 Posts: 210 Location: St Katherine's Dock London
|
|
|
|
if i understand correctly then:
1. use ROUTE to close the file in LPAR2.
2. use IKJEFT01 (or ...tso batch) to transfer your input data from LPAR1 to LPAR2.
3. use IKJEFT01 (or ...tso batch) to receive your input data sent from LPAR1.
4. again ROUTE to submit job in LPAR2 which will load the file.
5. use ROUTE to open the file in LPAR2. |
|
Back to top |
|
|
peerless_guy4u
New User
Joined: 13 Jul 2006 Posts: 9
|
|
|
|
Thanks for the solution provided, I will let you know, Once iam done with the task |
|
Back to top |
|
|
|