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: 8546
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 Question for Cobol Report Writer jackzhang75 COBOL Programming 2 Wed May 27, 2020 4:35 am
No new posts Compare multiple files using JCL/Rexx... tanvi110788 JCL & VSAM 4 Tue May 19, 2020 5:47 pm
No new posts In JCL Procedure how we can execute R... Dhananjayulu Neeli CLIST & REXX 7 Sat May 16, 2020 12:01 am
No new posts Need example for CALL 'ISRSUPC' in COBOL Sue Adams COBOL Programming 2 Thu May 14, 2020 5:32 am
No new posts COBOL Student learning COBOL File Han... torrind COBOL Programming 3 Sat May 09, 2020 3:40 am

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