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
 

 

Change the access mode of a file in CICS to REMOTE

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

New User


Joined: 21 Nov 2005
Posts: 35
Location: chennai

PostPosted: Fri Jul 10, 2009 9:47 pm    Post subject: Change the access mode of a file in CICS to REMOTE
Reply with quote

Hi,

I am testing with a file in CICS which is currently allocated to local test region and its attributes when inquired (CEMT I <file name>) shows
VSA OPE ENA REA etc., with VSA being enabled. I need to change this access method to REM (Remote) as it is in production for the same file. I googled a lot and i even tried to find a resolution in this forum's old topics but could not do so. Could any one of you please let me know any solution for this. Also let me know if you need any more information on this. Thanks.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8119
Location: East Dubuque, Illinois, USA

PostPosted: Fri Jul 10, 2009 10:25 pm    Post subject:
Reply with quote

AFAIK, you cannot change a file from local to remote via CEMT. You must use CEDA to do this; most applications programmers do not have authority to use CEDA (with good reason). Contact your site CICS support group to get your file changed.
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: Fri Jul 10, 2009 10:27 pm    Post subject: Reply to: Change the access mode of a file in CICS to REMOTE
Reply with quote

You need to define a REMOTE FCT entry in the current LOCAL region, which specifies the target SYSID (the region where the file will remotely reside). Actually, you could modify the current FCT entry and that would work. Then, in the new Remote region, define a LOCAL FCT entry, without the SYSID.

Do your application programs specify the KEYLENGTH in their FILE API's? If they do, then there aren't any worries. But, if they don't, they you need to specify the KEYLENGTH of the file, in both the REMOTE and LOCAL FCT entries, due to Function Shipping of the request to the new Remote region. Otherwise, an INVREQ will be raised by the given program, whenever a FILE API is issued, which requires the KEYLENGTH option, targeting this newly defined REMOTE file. IMHO, it is always a good idea to specify the KEYLENGTH in a FILE API which requires it, because if (as in your case), the file becomes REMOTE, then you don't have to worry about specifying the FCT KEYLENGTH as the KEYLENGTH will be automatically shipped for the REMOTE FILE API.

If by chance (a heads-up), you're running CICS/TS 3.2 and have applied the PTF, which allows VSAM to be Locally Threadsafe, the Threadsafe VSAM compliance goes away for Remote VSAM.

To make a long story short, in order to view the characteristics of a Remote file, you need to logon directly to the Remote region. Then, your CEMT FIL command will work as advertised.

Is there a need for an application program in a given AOR to CLO/OPE this newly defined Remote File?

Because (AFAIK), the SET FILE API is for Local files only, so keep this in mind.

HTH....

Regards,
Back to top
View user's profile Send private message
rskumar

New User


Joined: 21 Nov 2005
Posts: 35
Location: chennai

PostPosted: Fri Jul 10, 2009 11:37 pm    Post subject:
Reply with quote

Thanks a lot Bob and Bill!!! I'll try out the stuff you told and hopefully it should resolve my problem soon. icon_smile.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Jul 13, 2009 4:24 pm    Post subject:
Reply with quote

PS. He is Robert.
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 SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
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


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