View previous topic :: View next topic
|
Author |
Message |
Ziko13
New User
Joined: 19 Jul 2018 Posts: 26 Location: Greece
|
|
|
|
Hi all,
For educational reasons I am trying to write a program which reads from a database , loads a ts queue and then show contents in a separate transaction by pages.
I am stuck in the loading process. Queue elements are an array of text data.
My write queue command is
EXEC CICS WRITEQ TS QUEUE ('TEXT-QUEUE')
FROM QUEUE-ARRAY
NUMITEMS (CA-NUM-ITEMS)
RESP (RESP-CODE)
END-EXEC
The program gives a compile error for this (exec cics was found but cics compiler option was not in effect). I have cics statements before and they are translated ok so I assume my writeq command has some errors.
Any ideas? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
The manual says QUEUE is 1 to 8 characters. |
|
Back to top |
|
|
Ziko13
New User
Joined: 19 Jul 2018 Posts: 26 Location: Greece
|
|
|
|
changed it to queue1 but still the same |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Did you not look at the manual before you posted here? If so, did you notice that FROM(data-area) is the syntax -- NOT FROM data-area? You've made two syntax errors in one EXEC CICS statement, neither of which needed more than a short perusal of the manual to uncover. This forum is for professionals -- you know, people who read the manual? Perhaps you should stop posting here and start posting in Beginners and Students Forum instead? |
|
Back to top |
|
|
Ziko13
New User
Joined: 19 Jul 2018 Posts: 26 Location: Greece
|
|
|
|
yes it was the parenthesis. i should have been more carefull while reading the mannual yes. sorry for the inconvenience |
|
Back to top |
|
|
|