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

Error while executing CEMT commands through batch


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

New User


Joined: 02 Nov 2005
Posts: 66

PostPosted: Tue Sep 01, 2009 5:25 am
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Sep 01, 2009 5:41 am
Reply with quote

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
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Tue Sep 01, 2009 7:03 am
Reply with quote

For logical control to execute CEMT and check response.

You might have your installation consider the following ::
cicswiki.org/cicswiki1/index.php?title=How_do_I_interact_with_a_transaction_from_a_batch_program%3F#3rd_party_Vendor_Software
Back to top
View user's profile Send private message
ignich7

New User


Joined: 02 Nov 2005
Posts: 66

PostPosted: Wed Sep 02, 2009 7:13 pm
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Sep 02, 2009 7:24 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Sep 02, 2009 9:44 pm
Reply with quote

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
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 Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
Search our Forums:

Back to Top