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

TSO ALLOC In REXX Needs Improvement


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
muh786

New User


Joined: 14 Jun 2011
Posts: 1
Location: usa

PostPosted: Sat Nov 16, 2024 1:43 am
Reply with quote

Hello - I would appreciate some input on my dilemma. In Rexx program I am creating (or allocating) a dataset with the following attributes and it works; it creates a dataset:

ADDRESS TSO "ALLOC DA("F4") RECFM(F B) LRECL(80)",
"SPACE(1,1) CYL UNIT(SYSDA) DSORG(PS),BLKSIZE(27920)",
"STORCLAS(STANDARD) MGMTCLAS(BM01YR00)",
"NEW CATALOG"

F4 - has a dataset name. The problem is when I use this dataset in a batch JCL it doesn't get recognized. I get the following error message:

IAT8685 SY56 - REQUIRED RESOURCES NOT AVAILABLE
IAT8685 SY57 - GROUP/CLASS DISABLED

But if I create the same dataset in ISPF 3.4 with same attributes it works. So there must be something missing here that i am not using. Any help will be appreciated. Thanks
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Sat Nov 16, 2024 3:15 am
Reply with quote

explain why
TSO ALLOC In REXX Needs Improvement

the IAT8685 message is a jes3 message,
speak to your support to understand which resource is not available

post the jcl you are using
and the jes log of the job
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2593
Location: Silicon Valley

PostPosted: Sat Nov 16, 2024 8:48 am
Reply with quote

I agree with Enrico that you need to show us the JCL. Also, please explain the relationship between the rexx program and the batch job. When is the rexx program running?

My guess is that you are expecting F4 to still be a variable later when the job executes. The rexx and JCl are asynchronous.
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1329
Location: Bamberg, Germany

PostPosted: Sun Nov 17, 2024 11:37 am
Reply with quote

Issue a TSO FREE DA("F4") command after your allocation in REXX and it will work.

It might also good to know for you how to inquire JES3 what resources are not available.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Does anyone know rexx for VSE CLIST & REXX 3
No new posts REXX/CMS How to place command console... CLIST & REXX 4
No new posts Help needed in automation cics transa... CLIST & REXX 1
No new posts Reroute print output via REXX/SDSF TSO/ISPF 6
No new posts Get RECORD LENGTH, allocated space of... CLIST & REXX 7
Search our Forums:

Back to Top