View previous topic :: View next topic
|
Author |
Message |
madprasy
New User
Joined: 08 Apr 2008 Posts: 34 Location: Chennai
|
|
|
|
Hi,
My requirement is to get the following attribute details of list of online files(100+) by running a batch job.
OPEN/CLOSE
ENABLED/DISABLED
SHR
RLS
Is it possible?
For example,
After running the job, I need to get a report which says
logicalfilename1 OPE ENA SHR RLS
logicalfilename2 CLO DIS SHR
Plz help me. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
One way to do this would be to write an EXCI (CICS batch interface) program that invokes a CICS program in the region; the CICS program uses the SP inquire file CICS API command to pull the data you want. This is fairly advanced CICS programming but not terribly hard, although it should be approached as two separate tasks -- doing the EXCI commands in the batch program, and then separately doing the SP CICS commands and passing the data back to the EXCI program. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Side comment:
Quote: |
Every game is winnable..
Every problem is solvable.. |
You ought to look into NP-Hard / NP-Complete problems some time, or the Riemann Hypothesis. |
|
Back to top |
|
|
madprasy
New User
Joined: 08 Apr 2008 Posts: 34 Location: Chennai
|
|
|
|
Robert Sample wrote: |
One way to do this would be to write an EXCI (CICS batch interface) program |
Thanks for the heads-up Robert, let me research on that side for a permanent solution. You are quick & great!
I need another favour, my sub-requirement(?) is to code a JCL that checks if a file is in OPEN in CICS(or by another use)? Kind-of contention check. Could you please help me in that also or Should I need to post this as new topic? Please help me. |
|
Back to top |
|
|
madprasy
New User
Joined: 08 Apr 2008 Posts: 34 Location: Chennai
|
|
|
|
Quote: |
You ought to look into NP-Hard / NP-Complete problems some time, or the Riemann Hypothesis |
I believe in future(Polynomial time) Robert!! There will be a solution for it also! |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Also, review (Google) the DFHCSDUP Batch Utility.... |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
JCL will not do it but a program might.
If every game is winnable then every game must be lost - by the oppsition. |
|
Back to top |
|
|
|