Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Running rexx on zOS with JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Running rexx on zOS with JCL
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: 1210
Location: Vilnius, Lithuania

PostPosted: Wed Nov 20, 2019 5:50 pm    Post subject:
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: 845
Location: The Universe

PostPosted: Wed Nov 20, 2019 6:24 pm    Post subject:
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: 373
Location: Denmark

PostPosted: Wed Nov 20, 2019 6:46 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CA Sysview - JCL or Rexx - Read or Ex... Jasi CA Products 4 Wed Aug 05, 2020 9:19 pm
This topic is locked: you cannot edit posts or make replies. Invoke REXX thru JCL to expand the co... spizen556 CLIST & REXX 2 Sun Jul 26, 2020 3:53 pm
No new posts Unable to scroll in REXX panel KeshavKunal CLIST & REXX 4 Tue Jul 21, 2020 3:55 pm
No new posts REXX tool to extract all files starti... KeshavKunal CLIST & REXX 4 Tue Jul 21, 2020 3:43 pm
No new posts IOF reading using REXX paval21 CLIST & REXX 0 Mon Jun 15, 2020 9:44 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us