Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 10210
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: 7931
Location: Bellevue, IA

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: 7251

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: 7931
Location: Bellevue, IA

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 CICS transaction slow response time vasanthz All Other Mainframe Topics 1 Thu Jan 19, 2017 1:31 am
No new posts INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us