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 Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts Asynchronous CICS Processing Question moezbud CICS 0 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm


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