JCL to check if a file is opened/closed in CICS
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> CICS and Middleware

#1: JCL to check if a file is opened/closed in CICS Author: Magesh_J PostPosted: Tue Nov 03, 2015 11:44 am
    —
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

#2:  Author: William Collins PostPosted: Tue Nov 03, 2015 2:22 pm
    —
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.

#3:  Author: kolusuLocation: San Jose PostPosted: Wed Nov 04, 2015 9:17 am
    —
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.

#4:  Author: Magesh_J PostPosted: Wed Nov 04, 2015 2:06 pm
    —
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

#5:  Author: William Collins PostPosted: Wed Nov 04, 2015 6:29 pm
    —
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.

#6:  Author: Magesh_J PostPosted: Fri Nov 13, 2015 2:25 pm
    —
It appears i dont have access, So i cant do that Sad

Thanks William and Kolusu for the advise

Regards,
Magesh



MVSFORUMS.com -> CICS and Middleware


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group