IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Syntax for Exec cics start


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
hikaps14

Active User


Joined: 02 Sep 2005
Posts: 189
Location: Noida

PostPosted: Mon Nov 26, 2007 12:38 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Nov 26, 2007 6:36 pm
Reply with quote

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
View user's profile Send private message
hikaps14

Active User


Joined: 02 Sep 2005
Posts: 189
Location: Noida

PostPosted: Tue Nov 27, 2007 2:34 pm
Reply with quote

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
View user's profile Send private message
hikaps14

Active User


Joined: 02 Sep 2005
Posts: 189
Location: Noida

PostPosted: Tue Nov 27, 2007 4:23 pm
Reply with quote

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
View user's profile Send private message
rpuhlman

New User


Joined: 11 Jun 2007
Posts: 80
Location: Columbus, Ohio

PostPosted: Tue Nov 27, 2007 4:42 pm
Reply with quote

How is the RETREIVE command coded in the started task?
Back to top
View user's profile Send private message
hikaps14

Active User


Joined: 02 Sep 2005
Posts: 189
Location: Noida

PostPosted: Tue Nov 27, 2007 4:55 pm
Reply with quote

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
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 Using API Gateway from CICS program CICS 0
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top