MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can you have 2 CICS commands in 1 EXEC CICS block?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
jagbrew
Beginner


Joined: 09 Aug 2004
Posts: 5
Topics: 4

PostPosted: Thu Aug 12, 2004 10:33 am    Post subject: Can you have 2 CICS commands in 1 EXEC CICS block? Reply with quote

Any clue on the documentation for this?
Back to top
View user's profile Send private message
Mike Chantrey
Intermediate


Joined: 10 Sep 2003
Posts: 234
Topics: 1
Location: Wansford

PostPosted: Thu Aug 12, 2004 10:47 am    Post subject: Reply with quote

If you mean something like
Code:

EXEC CICS
   READ FILE('X') INTO(Y) RIDFLD(Z)
   WRITE FILE('X') FROM(Y) RIDFLD(Z)
END-EXEC.


Then you definitely can't do it. EXEC CICS ... END-EXEC. defines exactly one CICS command. Multiple commands would cause a translator failure as CICS interpreted them as incorrect parameters of the first command.

Given that this can't done, there will not be any documentation on it.

Questions:
Why did you think this could be done?
Why would you want to do it - what problem are you trying to solve?

(This is not the same thing, but at runtime you CAN have CICS commands 'embedded' in CICS commands - in a task-related user exit or global user exit - but the commands are actually coded in different programs. But this is a low level system programmer/3rd party software technique).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group