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
Warnings : 1

Senior Member


Joined: 07 Feb 2009
Posts: 1245
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: 883
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 User


Joined: 01 Sep 2015
Posts: 448
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 rexx pgm to create multiple ps file IBM Tools 7
No new posts Mainframe batch Job or REXX to get VT... CLIST & REXX 7
No new posts calling OMEGAMON from REXX CLIST & REXX 3
No new posts Cobol-db2 : SQL query is running for ... DB2 4
No new posts REXX allocated datasets in JCL CLIST & REXX 9
Search our Forums:

Back to Top