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

CEMT using Rexx? Help please


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Robledo

New User


Joined: 25 Mar 2021
Posts: 5
Location: EspaƱa

PostPosted: Mon Oct 27, 2025 4:09 am
Reply with quote

Hi everyone!

At the client of i work we using a JCL to do a CEMT command in SDSF and after send that to a Rexx.

I have a question: can we used Rexx directly to send commands to CICs? I read in google about "address REXXCICS" so i try a think like that:

Code:
/* Rexx */

Address Rexxcics
'CEMT INQUIRE DB2CONN'


But i obtain a RC=3


I have not a big idea about rexx or cics... sorry icon_rolleyes.gif Can anyone help me?

Thanks in advance!
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2622
Location: Silicon Valley

PostPosted: Mon Oct 27, 2025 8:22 am
Reply with quote

Show us your JCL. I do not know anything about CICS, but think you probably need to have CICS loadlib in the STEPLIB DD statement. And possibly something else in the rexx to do some setup.

I doubt that just anyone can issue CICS commands, so you might need some RACF authorization.

It seems like CEMT is an operator command. You might be able to use the TSO CONSOLE command in rexx (along with CONSPROF and GETMSG function). You will also need authorization to use the CONSOLE command.
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1424
Location: Bamberg, Germany

PostPosted: Mon Oct 27, 2025 11:15 am
Reply with quote

See also https://www.ibm.com/docs/de/cics-ts/5.6.0?topic=server-rexxcics-commands
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10900
Location: italy

PostPosted: Mon Oct 27, 2025 12:59 pm
Reply with quote

Quote:
address REXXCICS


is available for
Quote:
REXX for CICS TS


for details see

www.ibm.com/docs/en/cics-ts/6.x?topic=reference-rexx

www.ibm.com/docs/en/cics-ts/6.x?topic=reference-rexx-cics-ts-overview-product-features
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts get submitted JCL from SDSF with REXX... CLIST & REXX 2
No new posts Rexx to read current Panvalet editor/... CLIST & REXX 0
No new posts JCL/REXX to know GDG base name JCL & VSAM 6
No new posts Run rexx with JCL Job CLIST & REXX 1
No new posts Run rexx in batch job CLIST & REXX 7
Search our Forums:


Back to Top