View previous topic :: View next topic |
Author |
Message |
Magesh_J Intermediate
Joined: 21 Jun 2014 Posts: 259 Topics: 54
|
Posted: Tue Nov 03, 2015 11:44 am Post subject: JCL to check if a file is opened/closed in CICS |
|
|
Hi,
I am trying to execute a command from JCL and capture the output into a flat file.
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 |
|
|
William Collins Supermod
Joined: 03 Jun 2012 Posts: 437 Topics: 0
|
Posted: Tue Nov 03, 2015 2:22 pm Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12367 Topics: 75 Location: San Jose
|
Posted: Wed Nov 04, 2015 9:17 am Post subject: |
|
|
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 |
|
|
Magesh_J Intermediate
Joined: 21 Jun 2014 Posts: 259 Topics: 54
|
Posted: Wed Nov 04, 2015 2:06 pm Post subject: |
|
|
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 |
|
|
William Collins Supermod
Joined: 03 Jun 2012 Posts: 437 Topics: 0
|
Posted: Wed Nov 04, 2015 6:29 pm Post subject: |
|
|
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 |
|
|
Magesh_J Intermediate
Joined: 21 Jun 2014 Posts: 259 Topics: 54
|
Posted: Fri Nov 13, 2015 2:25 pm Post subject: |
|
|
It appears i dont have access, So i cant do that
Thanks William and Kolusu for the advise
Regards,
Magesh |
|
Back to top |
|
|
|
|