Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
Issuing IMS-Commands from a program written in COBOL

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

New User

Joined: 03 Jun 2016
Posts: 1
Location: Germany

PostPosted: Fri Jun 03, 2016 4:31 pm    Post subject: Issuing IMS-Commands from a program written in COBOL
Reply with quote

Hi all,

as a test, I wrote a REXX that issues commands to IMS in Type2-synthax. In this REXX I use the SPOC API.
Is there any similar API which I could use in a COBOL program?

Thank you in adcance.

Kind Regards,
Back to top
View user's profile Send private message

Robert Sample

Global Moderator

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

PostPosted: Fri Jun 03, 2016 9:21 pm    Post subject:
Reply with quote

The IMS System Administration web site implies it can be done (emphasis added by me):
A single point of control (SPOC) program in CSL

A single point of control (SPOC) is a program that allows you to manage operations of all IMS™ systems within an IMSplex instead of using a master terminal. With a SPOC, you can issue commands to all members of an IMSplex at once.

A SPOC communicates with a single OM. Through SCI, OM then communicates with all of the other IMS control regions in the IMSplex.

A SPOC is optional in an IMSplex. The existing command interfaces for the WTOR, MTO, and E-MCS console are supported only for type-1 commands. If you want to use type-2 commands, you must use a SPOC. You can use a SPOC instead of the z/OS® master console, IMS master terminal, or user terminal for most command processing.

Types of SPOCs:

On a 3270 TSO terminal, a TSO SPOC is a system management application with an ISPF panel interface. You can start the TSO SPOC using the IMS Application Menu. The TSO SPOC also displays the OM audit trail, which has a log of messages issued by IMS and commands issued by operators.
On a workstation, the SPOC is an IMS system-management application—the IBM® Management Console for IMS and DB2® for z/OS (Management Console). The Management Console is an IMS system management application with a graphical user interface (GUI).
The Batch SPOC utility uses OM services to submit IMS operator commands to an IMSplex. The utility accepts any commands that are supported by the OM API. The Batch SPOC utility is invoked by using standard JCL statements.
The REXX SPOC API allows automation programs to use SPOC functions. You can use the REXX SPOC API to automate commands.
Vendor- or user-written SPOC: A program that uses or accesses the OM API to perform SPOC functions.
Research the IMS OM API - that should tell you what you need.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1


Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISPF Panel commands DDLIST /LISTBOX Wesley TSO/ISPF 0 Thu Aug 06, 2020 11:25 pm
No new posts Restart logic by using cursor name in... Twinkle22 Mainframe Interview Questions 1 Wed Jul 29, 2020 11:26 am
No new posts COBOL Developers Perspectives on Soft... achakarov COBOL Programming 4 Sat Jul 18, 2020 1:26 am
No new posts CALL statement in COBOL for VSE Kirthishine COBOL Programming 3 Fri Jun 26, 2020 12:12 pm
No new posts ISPF Edit Macro with profile commands... Lynne Schuler TSO/ISPF 14 Thu Jun 18, 2020 7:25 pm

Back to Top
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us