Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Error while executing CEMT commands through batch

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
ignich7

New User


Joined: 02 Nov 2005
Posts: 65

PostPosted: Tue Sep 01, 2009 5:25 am    Post subject: Error while executing CEMT commands through batch
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: 7931
Location: Bellevue, IA

PostPosted: Tue Sep 01, 2009 5:41 am    Post subject:
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    Post subject:
Reply with quote

For logical control to execute CEMT and check response.

You might have your installation consider the following ::
http://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: 65

PostPosted: Wed Sep 02, 2009 7:13 pm    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed Sep 02, 2009 7:24 pm    Post subject: Reply to: Error while executing CEMT commands through batch
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: 7931
Location: Bellevue, IA

PostPosted: Wed Sep 02, 2009 9:44 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Viewing executing process in NDM .. q... Debb.Brant IBM Tools 0 Wed Dec 14, 2016 10:55 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us