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

Accessing CICS tran with map from JCL/Batch program


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

New User


Joined: 29 Sep 2017
Posts: 2
Location: India

PostPosted: Tue Oct 03, 2017 6:15 pm
Reply with quote

Hey All,

I wish to access my existing CICS program (with BMS map) from a JCL/batch program. The CICS program takes a user ID and keystroke (like F1,F3 or ENTER) as input.

So is it possible to accomplish the same using JCL ?

My support team had told me to use EXCI call but they are not sure of how to handle the BMS programs with batch program.

Thanks in Advance
Navdeep
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Tue Oct 03, 2017 11:49 pm
Reply with quote

It is not clear how you expect to pass a PF1 or PF3 key (for example) from the batch program to the CICS program. Nor is it clear what you expect the BMS map to be displayed on since a batch program rarely has a terminal associated with it. While CICS does support batch terminals (Google sequential terminal support for more details) and even BMS sequential terminals, you would have to do a lot of testing to see if what you want to do will work.

The general answer is, depending upon what your program does and how the BMS map(s) is(are) used, what you want to do may -- or may not -- be possible. It is unlikely that anyone on this forum has done exactly what you want to do, so you are unlikely to find much help on this -- or any -- forum.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3048
Location: NYC,USA

PostPosted: Wed Oct 04, 2017 8:44 pm
Reply with quote

What is the need to use MAPs in batch?
Quote:
So is it possible to accomplish the same using JCL ?
You need to explain more what is that you want to achieve, forget leveraging existing CICS code for a moment.
Back to top
View user's profile Send private message
navdeepaggarwal

New User


Joined: 29 Sep 2017
Posts: 2
Location: India

PostPosted: Thu Oct 05, 2017 11:58 pm
Reply with quote

@Robert I wish to reuse my existing BMS program instead of writing a new program for same purpose.

But the requirement is so that I need to trigger my BMS program with a batch program but I am not sure how shall I pass on input to BMS program from my batch program (like PF1 or PF3 etc).

@Rohit My BMS program is already having a map and since I want to reuse my BMS program from my new batch program, so I need to device a method to handle maps with the batch program.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3048
Location: NYC,USA

PostPosted: Fri Oct 06, 2017 12:02 am
Reply with quote

What you need is to bypass the maps routine and use the rest of the logic..that's what I get it. so you need to modify it to have it for both CICS and batch.
But what is the harm of having brand new batch program and mimic the logic you need it from the cics program?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Fri Oct 06, 2017 7:32 am
Reply with quote

As far as I am aware, you can interface CICS and batch through the EXCI interface (for example). However, I have never heard (in 40+ years of dealing with mainframes and CICS) of any way to interact with maps in a batch job. I've seen products that allow you to display a map in batch, but those products will not allow you to interact with the map; it is display only.
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 Using API Gateway from CICS program CICS 0
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
Search our Forums:

Back to Top