IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Running rexx on zOS with JCL


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Rajesh_98

New User


Joined: 20 Nov 2019
Posts: 1
Location: India

PostPosted: Wed Nov 20, 2019 5:19 pm
Reply with quote

Hi,

I'm running one rexx script with the JCL which contains SYSDSN() keyword.
what issue I'm facing is.
1. If I run the same rexx directly by EX in front of the script containing file. its working as expected. SYSDSN returning OK for existing file and 'DATASET NOT FOUND' for non-existing files.
2. But when I run the same rexx through JCL, SYSDSN returns 'DATASET NOT FOUND' for both (existing and non-existing).

So is there any constraint that we can't run SYSDSN though JOB?
or some additional parameter required to be provided in JCL to get this working?
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Wed Nov 20, 2019 5:50 pm
Reply with quote

We might be able to tell, if you had actually bothered to post the JCL...
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Wed Nov 20, 2019 6:24 pm
Reply with quote

prino wrote:
We might be able to tell, if you had actually bothered to post the JCL...


AND the Rexec EXEC
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 712
Location: Denmark

PostPosted: Wed Nov 20, 2019 6:46 pm
Reply with quote

One thought that springs to mind is the PREFIX setting. This is typically set by the TSO login script, but not when using REXX in batch. Try to put the datasetname in quotes in both cases. Also list the profile PREFIX value in both cases.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top