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: 8132
Location: East Dubuque, Illinois, USA

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: 8132
Location: East Dubuque, Illinois, USA

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: 1845
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 Match two files using multiple keys a... santoshks1987 SYNCSORT 10 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm


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