View previous topic :: View next topic
|
Author |
Message |
rashmirgowda
New User
Joined: 18 Jun 2008 Posts: 25 Location: india
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
rashmirgowda
New User
Joined: 18 Jun 2008 Posts: 25 Location: india
|
|
|
|
How to find the teminal connected to batch? can you please give some idea on this |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
|