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
 

 

How to give a return command from a linked program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
karthick sivakumar

New User


Joined: 16 Mar 2006
Posts: 16
Location: india

PostPosted: Tue May 09, 2006 6:47 am    Post subject: How to give a return command from a linked program
Reply with quote

Hi,

I tried to give a return command from a linked program and i got an abend saying i can't give return command from a program of a lower logical level. if i give xctl the parent program's linkage section ptr is set = 0 . so I'm unable to use a map variable from the parent program to which i need to pass a value got from the child program.but when i give a return xctl the map variable does not exist since the control starts from the procedure division..

is there any way to send and receive a map from a linked program and go back to the parent program.

please help me out asap.

Regards,
karthick
Back to top
View user's profile Send private message

BMKUMAR

New User


Joined: 09 May 2006
Posts: 3
Location: Bangalore

PostPosted: Tue May 09, 2006 5:13 pm    Post subject: LINK Vs XCTL
Reply with quote

Hi,

An EXEC LINK is similar to a call; it invokes a separate CICS program and ends with a RETURN to the invoking program. or

An EXEC XCTL which transfers control to another CICS program and does not get control back.

Hope this clears your doubt.

Cheers !
Back to top
View user's profile Send private message
BMKUMAR

New User


Joined: 09 May 2006
Posts: 3
Location: Bangalore

PostPosted: Tue May 09, 2006 5:23 pm    Post subject:
Reply with quote

Hi Karthick,
Can u send the error message u get icon_question.gif

Cheers,
bmk
Back to top
View user's profile Send private message
BMKUMAR

New User


Joined: 09 May 2006
Posts: 3
Location: Bangalore

PostPosted: Tue May 09, 2006 5:32 pm    Post subject:
Reply with quote

Hi Karthick,

I guess you are trying to Link a lower logical level program to a higher. Its not possible. Hence you are getting this error. Here This is my guess. Send me the exact error message.

Cheers,
bmkumar
Back to top
View user's profile Send private message
arunjosephaj

New User


Joined: 21 Mar 2006
Posts: 20
Location: India

PostPosted: Tue May 16, 2006 5:04 pm    Post subject:
Reply with quote

Y dont u just pass the map variable using the COMMAREA????
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 IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts QUESTION: RETURN CHANNEL pahiker CA Products 21 Thu Apr 20, 2017 12:31 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts scheduling between OPC and TWS give u... nsbl IBM Tools 4 Sun Mar 12, 2017 5:35 pm


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