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
 

 

How to get the online file attributes through batch?

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

New User


Joined: 08 Apr 2008
Posts: 31
Location: Chennai

PostPosted: Sat Oct 13, 2012 3:16 am    Post subject: How to get the online file attributes through batch?
Reply with quote

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
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7953
Location: Bellevue, IA

PostPosted: Sat Oct 13, 2012 3:44 am    Post subject:
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7953
Location: Bellevue, IA

PostPosted: Sat Oct 13, 2012 3:48 am    Post subject:
Reply with quote

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
View user's profile Send private message
madprasy

New User


Joined: 08 Apr 2008
Posts: 31
Location: Chennai

PostPosted: Sat Oct 13, 2012 4:06 am    Post subject:
Reply with quote

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
View user's profile Send private message
madprasy

New User


Joined: 08 Apr 2008
Posts: 31
Location: Chennai

PostPosted: Sat Oct 13, 2012 4:19 am    Post subject:
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


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

PostPosted: Sat Oct 13, 2012 5:59 am    Post subject: Reply to: How to get the online file attributes through batc
Reply with quote

Also, review (Google) the DFHCSDUP Batch Utility....
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1732
Location: UK

PostPosted: Sat Oct 13, 2012 5:45 pm    Post subject:
Reply with quote

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
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 Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Formating the Input file sreekusr DFSORT/ICETOOL 3 Fri Feb 17, 2017 10:40 pm
No new posts Sort two file having same field, one ... himanshu malik DFSORT/ICETOOL 7 Thu Feb 02, 2017 10:09 am
No new posts Remove junk values in a file and rite... KP1125 DFSORT/ICETOOL 2 Wed Jan 25, 2017 9:58 pm
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm


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