Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
If you don't have any 3rd-party packages (and I'm not advocating the following), you could issue a LINK API to IBM Program "DFHEMTP', passing a commarea, such as "SET FIL(XXXXXXXX) OPE ENA". The problem using this program is that although it was introduced some 30+ years ago (and it still works), it won't give you a return-code, indicating whether the SET was successful or not. If you do use this, you will need the SYSID of the target region where the file lives. This can be obtained via an INQUIRE FILE REMOTESYSTEM API. So, for REMOTE files, the only way to determine whether the "OPE ENA" was successful, is to issue a file API afterwards and keep your fingers crossed.
However, IBM has said for years that they were going to discontinue sending this OCO in future releases as well as its cousin "DFHEMTA" (which you can't use for REMOTE FILES), so keep this in mind.
Many in the CICS community have been asking IBM to enhance the "SET FILE" API to include access to REMOTE FILES, but nothing yet.
You can experiment with DFHEMTP using CECI (if you have the access).
HTH.... |
|