IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

temporary storage queue


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ziko13

New User


Joined: 19 Jul 2018
Posts: 26
Location: Greece

PostPosted: Mon May 20, 2019 1:54 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Mon May 20, 2019 3:51 pm
Reply with quote

The manual says QUEUE is 1 to 8 characters.
Back to top
View user's profile Send private message
Ziko13

New User


Joined: 19 Jul 2018
Posts: 26
Location: Greece

PostPosted: Mon May 20, 2019 4:25 pm
Reply with quote

changed it to queue1 but still the same
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Mon May 20, 2019 6:03 pm
Reply with quote

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
View user's profile Send private message
Ziko13

New User


Joined: 19 Jul 2018
Posts: 26
Location: Greece

PostPosted: Mon May 20, 2019 6:22 pm
Reply with quote

yes it was the parenthesis. i should have been more carefull while reading the mannual yes. sorry for the inconvenience
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts External data queue (changes?) CLIST & REXX 0
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts CICS vs LE: STORAGE option CICS 0
No new posts MQ response when MQGET of a stopped q... Java & MQSeries 2
No new posts Insufficient Storage ABENDS & Debugging 7
Search our Forums:

Back to Top