Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
User ID who deallocates the file

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

New User


Joined: 02 Mar 2012
Posts: 48
Location: India

PostPosted: Fri Apr 19, 2013 1:27 pm    Post subject: User ID who deallocates the file
Reply with quote

Hi,

I would like to know the user ID who is deallocating (closing) the file in CICS. I could able to see the entries in SDSF log under MSGUSER sysout, but always module as DFHDCN as below.

Code:
DFHFC0200 04/19/2013 09:48:20 NATBEITA Non-RLS file CPPLT has been allocated to data set AT.EI.SITBE.CIA20V.CPPLTA. Module DFHFCN.
DFHFC0200 04/19/2013 09:48:20 NATBEITA Non-RLS file CPPLTA has been allocated to data set AT.EI.SITBE.CIA20V.CPPLTA. Module DFHFCN.
DFHFC0201 04/19/2013 09:50:02 NATBEITA Non-RLS file CPPLT has been deallocated. Module DFHFCN.
DFHFC0201 04/19/2013 09:50:02 NATBEITA Non-RLS file CPPLTA has been deallocated. Module DFHFCN.


Could anyone know where to find the user ID who is deallocate/allocate in CICS. Is there any log to see the same.

Thanks for your answer.
Back to top
View user's profile Send private message

Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2504
Location: Atlanta, Georgia, USA

PostPosted: Fri Apr 19, 2013 2:55 pm    Post subject: Reply to: User ID who deallocates the file
Reply with quote

Is the file deallocation being performed using native CEMT commands or via a CICS-SPI API (such as SET FILE) or via a 3rd-party product, such as CAFC?

There is a GLUE exit for CEMT as well as the CICS-SPI API and your CICS System Programmer or Tech Support personnel would have to write a GLUE exit-program, where the USERID can be captured.

Take a look at the Customization Guide for your particular CICS Version/Release for the GLUE exit or look for an example in the CICS-supplied SDFHSAMP PDS.

There are also SMF records as well.
Back to top
View user's profile Send private message
dudenithy

New User


Joined: 02 Mar 2012
Posts: 48
Location: India

PostPosted: Fri Apr 19, 2013 3:28 pm    Post subject:
Reply with quote

hi Bill,
I need the information for both options, whoever using CEMT command directly, and also whoever closes the file through batch process (in which initially they will close the file and start batch processing).
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2504
Location: Atlanta, Georgia, USA

PostPosted: Sat Apr 20, 2013 3:29 am    Post subject: Reply to: User ID who deallocates the file
Reply with quote

Are you using a 3rd-party product (such as CAFC) to CLOSE/OPEN VSAM Files or are you using a home-grown EXCI-Interface from Batch?

After further review, GLUE "XPCFTCH" maybe what you need and address DSECT "DFHUEPAR", label "UEPUSER" in the user-defined Exit-Program.

This GLUE is driven to in CICS prior to a LINK-API.

However, if you're using SPI-API's (such as SET FILE), review GLUE "XEISPIN" which is invoked before the SPI-API is executed and address label "UEPUSID" in the user-defined Exit-Program, again DSECT "DFHUEPAR".

Note: GLUE Exit-Programs are not for the faint of heart and requires good Assembler and CICS knowledge and certainly can't be taught via this forum.

You still need to give us some idea as to the Batch method being used. It may be as easy as extracting the &USER assignment, from the Batch Job-Card as demonstrated in the following callable Assembler sub-program -

http://ibmmainframes.com/viewtopic.php?p=296785&highlight=#296785

The following link demonstrates extracting Batch Job-Card information -

http://www.ibmmainframes.com/viewtopic.php?p=167434&highlight=#167434

If you can extract all this information in the Batch program and log it prior to the EXCI/DPL to the target CICS region, then you have the ability to find the culprit.

HTH....
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 User access certification In Mainfram... Virendra Shambharkar All Other Mainframe Topics 4 Tue Oct 03, 2017 12:32 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us