You should check return codes when appropriate, certainly after allocations, EXECIO etc - otherwise how can you be sure that you can continue the program mainline? This is not REXX specific, just normal programming practice.
In short return codes (values) in REXX are set
functions sets a variable directly, cc=ListDsi(whatever)
TSO commands and called commands sets the RC variable
But by now we are getting way away from your original question and into how to program using REXX. The REXX manual goes to great lengths to describe keywords, functions, external calls etc, and you must consult that, and do some testing on your own. The TRACE instruction can be your friend, look that up.
CallinG REXX thru JCL
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
-
- Similar Topics
- Replies
- Views
- Last post
-
- 0
- 1537
-
by rogerstrycova
View the latest post
Fri Oct 22, 2021 12:41 pm
-
-
Calling Java program on UNIX/USS from a COBOL CICS program?
by zbius » Tue Nov 05, 2024 2:37 pm » in IBM Cobol - 2
- 2602
-
by zbius
View the latest post
Wed Nov 06, 2024 6:02 pm
-
-
- 12
- 3122
-
by sergeyken
View the latest post
Mon Sep 25, 2023 3:33 am
-
- 3
- 2185
-
by Robledo
View the latest post
Thu Mar 10, 2022 1:03 pm
-
- 5
- 2727
-
by Pedro
View the latest post
Sat Feb 06, 2021 4:56 am