IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to get the online file attributes through batch?


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
madprasy

New User


Joined: 08 Apr 2008
Posts: 34
Location: Chennai

PostPosted: Sat Oct 13, 2012 3:16 am
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Oct 13, 2012 3:44 am
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Oct 13, 2012 3:48 am
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: 34
Location: Chennai

PostPosted: Sat Oct 13, 2012 4:06 am
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: 34
Location: Chennai

PostPosted: Sat Oct 13, 2012 4:19 am
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Sat Oct 13, 2012 5:59 am
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: 2455
Location: Hampshire, UK

PostPosted: Sat Oct 13, 2012 5:45 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top