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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
peerless_guy4u

New User


Joined: 13 Jul 2006
Posts: 10

PostPosted: Wed Mar 25, 2009 12:50 pm    Post subject: Can we Open/Close the file which resides on diffrent LPAR
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: 7931
Location: Bellevue, IA

PostPosted: Wed Mar 25, 2009 5:14 pm    Post subject:
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

Active Member


Joined: 08 May 2006
Posts: 991
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Mar 25, 2009 8:09 pm    Post subject:
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: 10

PostPosted: Wed Mar 25, 2009 9:15 pm    Post subject: Reply to: Can we Open/Close the file which resides on diffre
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

Site Director


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

PostPosted: Wed Mar 25, 2009 9:23 pm    Post subject:
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: 10

PostPosted: Thu Mar 26, 2009 9:42 am    Post subject: Reply to: Can we Open/Close the file which resides on diffre
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: 7931
Location: Bellevue, IA

PostPosted: Thu Mar 26, 2009 5:34 pm    Post subject:
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

Site Director


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

PostPosted: Thu Mar 26, 2009 7:19 pm    Post subject:
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    Post subject:
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: 10

PostPosted: Fri Mar 27, 2009 11:27 pm    Post subject: Reply to: Can we Open/Close the file which resides on diffre
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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