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

How to Login in to cics region and issue command on CICS.


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

Active User


Joined: 20 Apr 2022
Posts: 147
Location: India

PostPosted: Tue Oct 01, 2024 7:58 am
Reply with quote

Hello Everyone!!

I am working on an automation and I have a requirement where operation team manually does this work.

manual work operation team does:

1> login to CICS region lets say they use use command L hlcopqt12.
2>They issue Command EFT1 in CICS terminal.
3>They releases one app lets say app name is apgatathah123.

I am looking to automate those above steps, how I can achieve this using batch job or JCL is there any way we can do that a sample job if anyone has would be great and any link to help me here would also appreciated.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1204
Location: Dublin, Ireland

PostPosted: Tue Oct 01, 2024 12:49 pm
Reply with quote

Hello,

You could probably use the EXCI interface to achieve this with a batch job.

This requires a CICS server program and a batch program. The EXCI interface can be setup as effectively logged on and can start the EFT1 transaction. There are samples in SDFHSAMP.

I don't know what you mean by "They releases one app lets say app name is apgatathah123." How is this done?


Garry.
Back to top
View user's profile Send private message
Digvijay Singh

Active User


Joined: 20 Apr 2022
Posts: 147
Location: India

PostPosted: Tue Oct 01, 2024 2:36 pm
Reply with quote

Thanks for response Garry!

I have no clue about EXCI interface if you could help me with the links to study about it.

This requires a CICS server program and a batch program. The EXCI interface can be setup as effectively logged on and can start the EFT1 transaction. There are samples in SDFHSAMP.

Above statement what s SDFHSANP ??

I don't know what you mean by "They releases one app lets say app name is apgatathah123." How is this done?

This is one manual step that operation team does to release the application this is opcp scheduler concept. we can ignore this for now I will figure this out how to do this step.

If you have any sample JCl you can post here.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1204
Location: Dublin, Ireland

PostPosted: Tue Oct 01, 2024 3:51 pm
Reply with quote

Hi,

**.SDFHSAMP is a library of samples supplied with CICS by IBM. High level qualifiers are site-dependent.

Information on using the EXCI Interface is available at:
www.ibm.com/docs/en/cics-ts/5.6?topic=interfaces-external-cics-interface


Garry.
Back to top
View user's profile Send private message
Digvijay Singh

Active User


Joined: 20 Apr 2022
Posts: 147
Location: India

PostPosted: Tue Oct 01, 2024 4:53 pm
Reply with quote

Hi Garry,

Appreciate your response , the link you provided there is lot theory only i read it and no any example JCL . I am looking for a JCL code which does this like" log in into CICS and execute EFT1 command. "
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1204
Location: Dublin, Ireland

PostPosted: Tue Oct 01, 2024 6:35 pm
Reply with quote

If your site allows, you could issue console modify command using IEFBR14 to start EFT1

//MYCMD JOB MSGCLASS=A,CLASS=
// COMMAND 'F cics-region-name,EFT1
//STEP1 EXEC PGM=IEFBR14

www.ibm.com/docs/en/integration-bus/9.0.0?topic=zos-issuing-commands-console

My site doesn't allow this, so I hadn't mentioned it.

Garry.
Back to top
View user's profile Send private message
Digvijay Singh

Active User


Joined: 20 Apr 2022
Posts: 147
Location: India

PostPosted: Tue Oct 01, 2024 6:53 pm
Reply with quote

Thank you Garry,

I was looking for this only however still i need to try whether it works in my sight or not. I am also looking for suggestion whether can we use rexx to achieve the same. connect to cics region and issue these commands
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1204
Location: Dublin, Ireland

PostPosted: Tue Oct 01, 2024 7:59 pm
Reply with quote

Quote:
Thank you Garry,

I was looking for this only however still i need to try whether it works in my sight or not. I am also looking for suggestion whether can we use rexx to achieve the same. connect to cics region and issue these commands


You can issue console commands from REXX. See the REXX CONSPROF command to establish the console environment. Once that's established you can Address CONSOLE "your-console-command". You can use GETMSG to see results of the command.

The REXX userid needs access to issue the command. There is no need to logon to the CICS region.

Garry.
Back to top
View user's profile Send private message
Digvijay Singh

Active User


Joined: 20 Apr 2022
Posts: 147
Location: India

PostPosted: Wed Oct 09, 2024 5:14 am
Reply with quote

Hi Garry,

The JCL did not worked for me may due to sight issue. What is the command we can use in rexx to issue EFT1 after login to cics region. I am able to login to cics region but not able to issue command. could you help here with rexx code to issue cics command?
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 726
Location: Denmark

PostPosted: Wed Oct 09, 2024 12:15 pm
Reply with quote

A quick internet search for 'cics rexx api' gave me a number of hits, i.e. www.ibm.com/docs/en/cics-ts/5.5?topic=programs-eyuapi1 . Most articles seems to imply that you need a CICSplex for using the API. But I'm not a CICS person.
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 XML Generate issue COBOL Programming 0
No new posts Help needed in automation cics transa... CLIST & REXX 1
No new posts Passing containers on START command CICS 4
No new posts Spoolopen cics CICS 0
No new posts Check if CICS is online in JCL CICS 10
Search our Forums:

Back to Top