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
 

 

Coding XCTL Statement without RETURN

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

New User


Joined: 11 Mar 2005
Posts: 7

PostPosted: Fri Mar 18, 2005 4:50 pm    Post subject: Coding XCTL Statement without RETURN
Reply with quote

I have a CICS program.

I have a XCTL call, For this call we can not expect the control to come back to the calling program.

My questions is if i do not have any return statement in my program, will the program will come out without any harm or whether it will abend after the successful execution of the statements in the program?
Back to top
View user's profile Send private message

UNIVERSE

New User


Joined: 15 Mar 2005
Posts: 11
Location: Mumbai

PostPosted: Fri Mar 18, 2005 5:38 pm    Post subject: Control doesnt go back to CICS
Reply with quote

If u dont code RETURN/GOBACK/STOPRUN, the control doent gets back to the CICS.
The program may be executed successfully. It doesnt throw any error.
U cant get the output.

Regards
UNIVERSE
[/quote]
Back to top
View user's profile Send private message
sarma Kappagantu

New User


Joined: 17 Mar 2005
Posts: 22
Location: Bangalore

PostPosted: Fri Mar 18, 2005 7:03 pm    Post subject:
Reply with quote

I believe you should encounter a 4038 error. This is an LE abend.
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Sat Mar 19, 2005 3:02 pm    Post subject:
Reply with quote

I think control will return to CICS. what is 4038 erro or LE abend...can you plz expalin this....
Back to top
View user's profile Send private message
sarma Kappagantu

New User


Joined: 17 Mar 2005
Posts: 22
Location: Bangalore

PostPosted: Mon Mar 21, 2005 9:40 am    Post subject:
Reply with quote

In OS/390 and z/OS environments, all programs that we compile are compiled to a common, intermediate language. This is called as Language enviroment. It is because of this LE, one can write a C program and call it from a COBOL program.

About 4038 abend. Write a simple 'Hello World' program without a RETURN and see, what your mainframe says.

For futher information on 4038 please see, http://www-1.ibm.com/servers/eserver/ zseries/zos/le/conference/pdf/da8423.pdf
Back to top
View user's profile Send private message
abirami

New User


Joined: 11 Mar 2005
Posts: 7

PostPosted: Mon Mar 21, 2005 9:43 am    Post subject:
Reply with quote

IS this 4038 error relates to time out error.
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Mon Mar 21, 2005 1:08 pm    Post subject:
Reply with quote

thanks sarma Kappagantu...for the details u have provided me...
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 JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts VALIDATE NULL VALUE IN DB2 CASE STATE... useit DB2 5 Thu Feb 09, 2017 4:34 pm
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 2 Thu Jan 12, 2017 12:02 pm


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