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 How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts DFHWS2LS return value divated CICS 4 Mon Nov 07, 2016 5:44 pm
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am
No new posts Converting NULL column into NOT NULL ... Raghu navaikulam DB2 5 Sat Aug 06, 2016 3:45 pm


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