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

Can we Open/Close the file which resides on diffrent LPAR


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
peerless_guy4u

New User


Joined: 13 Jul 2006
Posts: 9

PostPosted: Wed Mar 25, 2009 12:50 pm
Reply with quote

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

Global Moderator


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

PostPosted: Wed Mar 25, 2009 5:14 pm
Reply with 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, 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
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Wed Mar 25, 2009 8:09 pm
Reply with quote

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

New User


Joined: 13 Jul 2006
Posts: 9

PostPosted: Wed Mar 25, 2009 9:15 pm
Reply with quote

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

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Mar 25, 2009 9:23 pm
Reply with quote

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

New User


Joined: 13 Jul 2006
Posts: 9

PostPosted: Thu Mar 26, 2009 9:42 am
Reply with quote

Hi,

There is not such Shared LPAR DASD avaliable, So that i can use it across.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Thu Mar 26, 2009 5:34 pm
Reply with quote

Garry says the ROUTE command can be used, so that's probably the best way to do what you're wanting.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Mar 26, 2009 7:19 pm
Reply with quote

Hello,

Sorry, but it looks like i've confused myself. . . . icon_redface.gif

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

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

Active User


Joined: 28 Sep 2005
Posts: 210
Location: St Katherine's Dock London

PostPosted: Thu Mar 26, 2009 8:31 pm
Reply with quote

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

New User


Joined: 13 Jul 2006
Posts: 9

PostPosted: Fri Mar 27, 2009 11:27 pm
Reply with quote

Thanks for the solution provided, I will let you know, Once iam done with the task icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top