Kbase P17271: Generates a core dump when trying to run a program in batch
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/01/2003 |
|
Status: Unverified
FACT(s) (Environment):
Progress 9.1C
SYMPTOM(s):
Generates a core dump when trying to run a program in batch mode that accesses the SonicMQ Adapter.
Using SonicMQ Adapter 9.1D
When running in batch mode gets "attempt to read with no source of input" (error 513)
** Attempt to read with no current source of input. (513)
CAUSE:
No input source.
FIX:
You must provide an input source,
either with INPUT FROM or INPUT THROUGH, before executing a statement.
Example Code Snippet:
DEFINE VARIABLE pubsubsession AS HANDLE.
DEFINE VARIABLE consumerH AS HANDLE.
DEFINE VARIABLE txt AS CHAR.
DEF VAR jmsOK AS LOGICAL INITIAL TRUE.
INPUT FROM "myinp.txt".
OUTPUT TO "myoutput.txt".
/* Creates a session object. */
RUN jms/pubsubsession.p PERSISTENT SET pubsubsession("-H localhost -S 5162").
RUN setBrokerURL IN pubsubsession ("localhost:2506").
RUN beginSession IN pubsubsession.
/* End of code snippet */