MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

JCL to check if a file is opened/closed in CICS

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
Magesh_J
Intermediate


Joined: 21 Jun 2014
Posts: 259
Topics: 54

PostPosted: Tue Nov 03, 2015 11:44 am    Post subject: JCL to check if a file is opened/closed in CICS Reply with quote

Hi,

I am trying to execute a command from JCL and capture the output into a flat file.

Code:

CEMT I FIL(*)


The output of the command should be in a file.

I have gone thru this form,

http://www.mvsforums.com/helpboards/viewtopic.php?p=1420

Tried below jcl, Job ran successfully but no result, Please advise.

Code:

//STEP01  EXEC PGM=IEBGENER                                   
//SYSOUT   DD SYSOUT=*                                         
//SYSPRINT DD SYSOUT=*                                         
//SYSUT1   DD *                                               
/*$TAPARM,T=00.00,'$VS,''F CICSNAME,CEMT I FILE(*)'''         
//SYSUT2   DD SYSOUT=(A,INTRDR)                               
//SYSIN    DD DUMMY                                           
/*                                                             


Thanks
Magesh
Back to top
View user's profile Send private message
William Collins
Supermod


Joined: 03 Jun 2012
Posts: 437
Topics: 0

PostPosted: Tue Nov 03, 2015 2:22 pm    Post subject: Reply with quote

Did you read the while topic where you found that JCL? I'd suggest contacting your Support people, and see how they'd like you to do it.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12357
Topics: 75
Location: San Jose

PostPosted: Wed Nov 04, 2015 9:17 am    Post subject: Reply with quote

Magesh_J,

what did you have for CICSNAME ? It should be the name of your CICS region. Secondly once you run this job, you need to look in syslog (via LOG from SDSF) and find out if your job is successful. If you need to copy the Job output to a dataset then you would need to run SDSF in Batch and extract the job contents based on the jobname.
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Magesh_J
Intermediate


Joined: 21 Jun 2014
Posts: 259
Topics: 54

PostPosted: Wed Nov 04, 2015 2:06 pm    Post subject: Reply with quote

Thanks Kolusu for the kind response.

Yes, I gave CICS region name only, In LOG i could see the job is successful, But couldnt find the ouptut of the given command either in sdsf or log.

when i issue the same command in CICS, it gives all files and status of the file.

But in batch jcl, it say successful, output list is missing.

Williams,

I have requested Support team for assistance.

Thanks
Magesh
Back to top
View user's profile Send private message
William Collins
Supermod


Joined: 03 Jun 2012
Posts: 437
Topics: 0

PostPosted: Wed Nov 04, 2015 6:29 pm    Post subject: Reply with quote

Quote:
once you run this job, you need to look in syslog (via LOG from SDSF)


This is refers to that which you submitted to the Internal Reader (INTRDR). Your JOB output is just going to show you the result of the copy of the command to the internal reader. The action of the command you will see on the log.
Back to top
View user's profile Send private message
Magesh_J
Intermediate


Joined: 21 Jun 2014
Posts: 259
Topics: 54

PostPosted: Fri Nov 13, 2015 2:25 pm    Post subject: Reply with quote

It appears i dont have access, So i cant do that Sad

Thanks William and Kolusu for the advise

Regards,
Magesh
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group