View previous topic :: View next topic
|
Author |
Message |
hikaps14
Active User
Joined: 02 Sep 2005 Posts: 189 Location: Noida
|
|
|
|
Hi,
I need to know more about the below command
EXEC CICS START
TRANSID (AAAAA)
TERMID (BBBBB)
FROM (CCCCC)
LENGTH (LENGTH OF CCCCC)
RESP (WS-RESP)
END-EXEC.
I am currently using the above command. I am not sure about the flow of control for this command. Whether the control will return to calling module and whether the variables passed to calling module which are updated by called module be available after return.
My 2nd query is whether I can pass another variable in:
FROM ( CCCC, DDDD)
LENGTH ( LENGTH OF (CCCC,DDDD))
I don't think the syntax is correct.
Can anybody give some suggestions ?
Thanks,
-Kapil. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
hikaps14 wrote: |
I need to know more about the below command
EXEC CICS START
TRANSID (AAAAA)
TERMID (BBBBB)
FROM (CCCCC)
LENGTH (LENGTH OF CCCCC)
RESP (WS-RESP)
END-EXEC. |
START here |
|
Back to top |
|
|
hikaps14
Active User
Joined: 02 Sep 2005 Posts: 189 Location: Noida
|
|
|
|
Hi,
Thanks for that post william.
I did go thru that, still there are few doubts.
1) If Pgm A is the code which executes START command to initiate task B. Now after executing this command,
will Pgm A wait for control to get back from task B ?
or
will Pgm A continue its execution parallel to the execution of task B.
According to me once the task B is started it has no link with Pgm A. Pgm A should not wait for task B to end.
Could any body confirm the control flow of start command.
Thanks,
-Kapil |
|
Back to top |
|
|
hikaps14
Active User
Joined: 02 Sep 2005 Posts: 189 Location: Noida
|
|
|
|
Hi,
I have tried out this code & I am facing some problem with passing data.
I hope there is no problem with the maximum length of data being passed via
FROM (CCCCC)
parm.
The length of CCCCC is approx 650 bytes. I guess this figure should be a valid one.
Thanks,
-Kapil. |
|
Back to top |
|
|
rpuhlman
New User
Joined: 11 Jun 2007 Posts: 80 Location: Columbus, Ohio
|
|
|
|
How is the RETREIVE command coded in the started task? |
|
Back to top |
|
|
hikaps14
Active User
Joined: 02 Sep 2005 Posts: 189 Location: Noida
|
|
|
|
Hi,
Problem is resolved now. I was making a logical error of accessing a variable before executing the Retrieve command. So my code was failing at run time with message ' STORAGE NOT ALLOCATED TO THIS VARIABLE'.
Thanks for all ur support guys. |
|
Back to top |
|
|
|