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: 8569
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: 8569
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 VSAM file Storage Calculation JCL & VSAM 3
No new posts Global temporary table DB2 1
No new posts Using Virtual Tape Server TS7700 as c... All Other Mainframe Topics 0
No new posts Mainframe Storage HSM IBM Tools 5
No new posts Large'ish Working Storage and SOS issues CICS 0
Search our Forums:

Back to Top