Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
TERMIDERR in CICS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: TERMIDERR in CICS
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10457
Location: italy

PostPosted: Mon Mar 18, 2013 2:01 pm    Post subject: Reply to: TERMIDERR in CICS
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
http://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: 8280
Location: Dubuque, Iowa, USA

PostPosted: Mon Mar 18, 2013 2:35 pm    Post subject:
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    Post subject: TERMIDERR in CICS
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Mon Mar 18, 2013 4:09 pm    Post subject: Reply to: TERMIDERR in CICS
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: 8280
Location: Dubuque, Iowa, USA

PostPosted: Mon Mar 18, 2013 5:06 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How do you attach a DB2 plan to a CIC... John Poulakos DB2 0 Wed Apr 18, 2018 1:49 am
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm
No new posts How do I define a DB2 plan for a web ... John Poulakos CICS 5 Sat Apr 14, 2018 1:58 am
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts Limit in Length for a CICS START seahawk789 CICS 6 Mon Apr 02, 2018 8:34 pm

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