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: 7908
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: 7908
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: 1713
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 Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm


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