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

TERMIDERR in CICS


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

New User


Joined: 18 Jun 2008
Posts: 25
Location: india

PostPosted: Mon Mar 18, 2013 1:54 pm
Reply with quote

I am trigerring a CICS transaction through Batch.In program EIBTRMID value is spaces.

So i used the below command to get the TERMINAL ID.

EXEC CICS INQUIRE
TERMINAL (WS-TERM-ID)
NETNAME (WS-PRINT-NETNAME)
RESP (WS-RESP)
END-EXEC

But i am getting TERMIDERR.Please can anyone advise.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Mar 18, 2013 2:01 pm
Reply with quote

Quote:
So i used the below command to get the TERMINAL ID.


based on what additional info ???

wiser to review the INQUIRE command objective, parameters, returned values

for example here
pic.dhe.ibm.com/infocenter/cicsts/v4r1/index.jsp?topic=%2Fcom.ibm.cics.ts.doc%2Fdfha8%2Fcommands%2Fdfha8_inquireterminal.html

and ... wht is that is not clear in the manuals explanation for TERMIDERR ???


Quote:
TERMIDERR
RESP2 value:
1
The named terminal cannot be found.
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: Mon Mar 18, 2013 2:35 pm
Reply with quote

If you are running a CICS transaction from batch, what terminal is that batch job connected to? Once you answer that question, you will -- or SHOULD -- understand why EIBTRMID is spaces and why your INQUIRE TERMINAL failed.
Back to top
View user's profile Send private message
rashmirgowda

New User


Joined: 18 Jun 2008
Posts: 25
Location: india

PostPosted: Mon Mar 18, 2013 3:49 pm
Reply with quote

How to find the teminal connected to batch? can you please give some idea on this
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Mar 18, 2013 4:09 pm
Reply with quote

I guess it is going to depend on which desk the batch initiators chose to sit at that morning.

Seriously, how do you feel a "terminal" might be involved with a batch job?
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: Mon Mar 18, 2013 5:06 pm
Reply with quote

rashmirgowda: the point that you have completely missed so far is that, unless something special is done, a batch invocation of a CICS program runs unattached to a terminal. Hence, there will be spaces in the EIBTRMID variable and using EXEC CICS INQUIRE TERMINAL is going to return TERMIDERR.

The results you are getting are normal and expected for what you are doing. If you want different results, you will need to research "batch terminal" in the CICS bookshelf or Information Center for your release of CICS. And using a batch terminal may well require you to get your CICS support group involved if your site is not currently set up to use batch terminals.
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 Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts How to avoid duplicating a CICS Web S... CICS 0
Search our Forums:

Back to Top