View previous topic :: View next topic
|
Author |
Message |
ignich7
New User
Joined: 02 Nov 2005 Posts: 66
|
|
|
|
Hi..
Thanks for looking into this.
I am trying to execute CEMT I FILE(*) through batch. When I execute the following JCL..
Code: |
//STEP1 EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSUT1 DD DATA,DLM=$$
/*$VS,F CICSX,'CEMT I FILE(*)'
$$ |
I get the following error
Code: |
$HASP120 INTRDR $VS,F CICSX,'CEMT I FILE(*)' FROM JOB03915 SP1GXNB
$HASP690 COMMAND REJECTED - SOURCE OF COMMAND HAS IMPROPER AUTHORITY |
But when i execute the below command in SDSF, it works fine.
Code: |
/F CICSX,'CEMT I FILE(*)' |
Please assist me what needs to be done in order to execute my JCL without any issues? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Code: |
//STEP1 EXEC PGM=IEFBR14
// F CICSX,CEMT I FI(*) |
will do it. However, be aware that the command is executed before the job starts executing, and cannot be controlled as if it were a step -- no checking condition codes, no IF statement logic.
If you want to do it as a separately submitted job, you must have a job card before these two statements as the first line submitted to the internal reader must be a JOB statement. |
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
Back to top |
|
|
ignich7
New User
Joined: 02 Nov 2005 Posts: 66
|
|
|
|
Thanks for the reply Robert.
But, Where can I see the output? It is not captured in ULOG and SYSLOG.
I issued // F CICSX,CEMT SET FILE(FILE1) OPEN, but when i login to CICSX to check whether FILE1 is opened or not, the file status was "CLO".
Please let me know what could be the reason why it is not working for me.
Do I need to do some setup to get it worked? But, as i said earlier, when I issue commands in SDSF, it works fine.
Thank you again. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
As Earl suggests, check out the posted link.
In addition, you could write a Batch/EXCI program which links to a CICS program and issues CICS SET API's.
Then, you can return the EIBRESP and/or EIBRCODE from the SET API, back to the EXCI program for review.
Bill |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
The output should show up on the console log -- I haven't run one lately so I don't know if it shows up in the job log or not. If you have access to the CICS region job log, you can see the command results there as well. |
|
Back to top |
|
|
|