View previous topic :: View next topic
|
Author |
Message |
ssamineni Warnings : 1 New User
Joined: 10 Mar 2007 Posts: 16 Location: India
|
|
|
|
Hi,
I need some help regarding CICS and Assembler.
I need to use CICS XCTL in my Assembler program to pass control to other Assembler program.
Is it possible to send two DSECTs in the COMMAREA?.
Currently we have 2 DSECTS in our program which needs to be passed to the sub program.One DSECT is for MAP ,the other DSECT is for some work area related variables.
For MAP dsect,we have allocated one register, and for other varibales one register.We can't allocate single register for both becoz of other constraints.
I would like to know if its possible to pass two DSECTs ( or copybooks) using COMMAREA to the other program.
Thanks.
Warning: Repost, Merged below |
|
Back to top |
|
|
ssamineni Warnings : 1 New User
Joined: 10 Mar 2007 Posts: 16 Location: India
|
|
|
|
Hi,
I need some help regarding CICS and Assembler.
I need to use CICS XCTL in my Assembler program to pass control to other Assembler program.
Is it possible to send two DSECTs in the COMMAREA?.
Currently we have 2 DSECTS in our program which needs to be passed to the sub program.One DSECT is for MAP ,the other DSECT is for some work area related variables.
For MAP dsect,we have allocated one register, and for other varibales one register.We can't allocate single register for both becoz of other constraints.
I would like to know if its possible to pass two DSECTs ( or copybooks) using COMMAREA to the other program.
Thanks. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
I remembered this question from yesterday and was interested in the answer, so i noticed this when it was posted again today.
Please don't post the same question in multiple forums as it is more confusing than helpful.
We don't have a way to post multi-discipline questions (like yours), so we want to place the question in the forum where it is most likely to get good replies.
The rules for CICS and XCTL are basically the same for assembler as they are for COBOL. Are you a CICS COBOL programmer? If i recall, while assembler uses the term "dsects", COBOL uses LINKAGE SECTION.
If you know how to do what you want with COBOL, i believe you could apply the same method to your assembler code.
Please let me know if you would like to keep this in the assembler forum or have it replace the post in the CICS forum.
Sorry that i don't have much of an answer for you. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Without getting too fancy, About all you can do is move the two dsects to the working storage definition of the commarea and go. |
|
Back to top |
|
|
ssamineni Warnings : 1 New User
Joined: 10 Mar 2007 Posts: 16 Location: India
|
|
|
|
Sorry for posting the same question in different forums.I will make sure it doesn't happen again.
Thanks for the reply.
We have declared the variables in between DFHEISTG & DHEIEND.
ex: OUTMSG DSECT ( some variables grouped under this dsect)
MAP10 DSECT(This has symblic map of cics screen).
Here my doubt is it possible to send both in XCTL.Does the following sttaement works?
EXEC CICS XCTL PROGRAM(xxxxxx) COMMAREA(OUTMSG,MAP10)
It would be greatful if someone post material on using cics in assembler.
Thanks |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
ssamineni wrote: |
Sorry for posting the same question in different forums.I will make sure it doesn't happen again. |
OK
Quote: |
We have declared the variables in between DFHEISTG & DHEIEND.
ex: OUTMSG DSECT ( some variables grouped under this dsect)
MAP10 DSECT(This has symblic map of cics screen). |
So the DSECTs are in your working storage?
Quote: |
Here my doubt is it possible to send both in XCTL.Does the following sttaement works?
EXEC CICS XCTL PROGRAM(xxxxxx) COMMAREA(OUTMSG,MAP10) |
No. Try (I think I've got this right)
Code: |
COMAREA DS 0D
OUTMSG DSECT
...
MAP10 DSECT
...
COMLEN DC AL2(*-COMAREA)
EXEC CICS XCTL PROGRAM(xxxxxx) COMMAREA(COMAREA) LENGTH(COMLEN) |
Insure that the program "xxxxxx" defines the passed COMMAREA exactly the same.
Quote: |
It would be greatful if someone post material on using cics in assembler. |
CICS commands work the same for Assembler as they do for COBOL. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
Back to top |
|
|
ssamineni Warnings : 1 New User
Joined: 10 Mar 2007 Posts: 16 Location: India
|
|
|
|
Thanks alot for your help. I have tried and its working now. I am working on a migration project in which ICOM has to be converted to CICS and the programming language is assembler.Am new to assembler & cics,so getting so many doubts.
I have had a look at the url you have sent,i couldn't get much information.
I will try get some material on this |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Good luck - we'll try to offer suggestions when there are questions |
|
Back to top |
|
|
|