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: 8117
Location: East Dubuque, Illinois, USA

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: 995
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: 8117
Location: East Dubuque, Illinois, USA

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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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