CICS GDS ASSIGN is a command used to assign conversation attributes and establish communication parameters for General Data Stream (GDS) sessions in CICS APPC environments. It configures conversation characteristics for optimal data exchange.
CICS GDS ASSIGN configures conversation attributes and establishes communication parameters for GDS sessions. It allows programs to set conversation characteristics, define data transfer modes, and configure session behavior for APPC communications.
123456EXEC CICS GDS ASSIGN CONVID(conversation-id) ATTRIBUTES(attribute-list) RESP(response-code) RESP2(response-code-2) END-EXEC.
Specifies the conversation identifier:
Specifies conversation attributes:
1234567891011121314151617181920212223242526272829303132333435363738394041424344WORKING-STORAGE SECTION. 01 WS-CONVERSATION-ID PIC S9(8) COMP. 01 WS-RESPONSE PIC S9(8) COMP. 01 WS-RESPONSE2 PIC S9(8) COMP. 01 WS-ATTRIBUTES. 05 WS-SYNC-LEVEL PIC X(1) VALUE '2'. 05 WS-CONFIRM PIC X(1) VALUE 'Y'. 05 WS-DEALLOCATE PIC X(1) VALUE 'N'. 05 WS-SECURITY PIC X(1) VALUE 'H'. PROCEDURE DIVISION. EXEC CICS GDS ASSIGN CONVID(WS-CONVERSATION-ID) ATTRIBUTES(WS-ATTRIBUTES) RESP(WS-RESPONSE) RESP2(WS-RESPONSE2) END-EXEC. IF WS-RESPONSE NOT EQUAL DFHRESP(NORMAL) EXEC CICS WRITE OPERATOR TEXT('GDS ASSIGN failed') END-EXEC EXEC CICS RETURN END-EXEC END-IF. * Conversation attributes assigned successfully * Continue with data transfer operations EXEC CICS GDS ASSIGN CONVID(WS-CONVERSATION-ID) ATTRIBUTES(WS-ATTRIBUTES) RESP(WS-RESPONSE) RESP2(WS-RESPONSE2) END-EXEC. IF WS-RESPONSE NOT EQUAL DFHRESP(NORMAL) EXEC CICS WRITE OPERATOR TEXT('GDS ASSIGN failed') END-EXEC EXEC CICS RETURN END-EXEC END-IF. * Conversation attributes assigned successfully * Continue with data transfer operations
No synchronization:
Confirmation required:
Syncpoint synchronization:
Imagine you're setting up a game with your friend:
Before you start playing, you need to decide what rules to follow. Will you play for fun or for keeps? How long will each turn be? What happens if someone makes a mistake?
CICS GDS ASSIGN is like setting up the rules for your game. It tells the computer how to behave when it's talking to another computer - how fast to send messages, whether to wait for confirmation, and what to do if something goes wrong.
Just like you might choose different rules for different games, the computer can choose different settings depending on what kind of conversation it's having. Some conversations need to be very careful and slow, while others can be fast and loose.
Configure a GDS conversation with sync level 2, confirmation required, and high security. Write the GDS ASSIGN command.
12345EXEC CICS GDS ASSIGN CONVID(WS-CONVERSATION-ID) ATTRIBUTES(WS-ATTRIBUTES) RESP(WS-RESPONSE) END-EXEC.
When would you use sync level 0, 1, and 2? What are the trade-offs between performance and reliability?
Answer: Use sync level 0 for non-critical data requiring maximum speed, level 1 for most applications needing basic confirmation, and level 2 for critical data requiring full transaction synchronization with slower performance.
What is the primary purpose of CICS GDS ASSIGN?
Answer: B) To configure conversation attributes
Which synchronization level provides the fastest data transfer?
Answer: A) Level 0