Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Syntax for Exec cics start

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Syntax for Exec cics start
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: 3158
Location: Tucson AZ

PostPosted: Mon Nov 26, 2007 6:36 pm    Post subject: Re: Exec cics start
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    Post subject: Reply to: Exec cics start
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    Post subject: Reply to: Exec cics start
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    Post subject:
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    Post subject: Reply to: Exec cics start
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts CICS NEW SIT PARAMETERS CICS BEHAVIOR... Kyle Carroll CICS 0 Fri Nov 04, 2016 11:55 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us