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

LIBDEF not working in called proc

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

New User

Joined: 15 Jan 2016
Posts: 7
Location: uk

PostPosted: Fri Sep 15, 2017 7:22 pm
Reply with quote


I have a REXX in which I've set up a LIBDEF as follows


I then go onto connect to DB2 to issue some SQL however I get


DSNHDECP isn't called directly from my REXX, I assume that's called from somewhere in the processes in "SUBCOM DSNREXX" however I assume the problem is that LIBDEF is only working in the scope of my REXX code and the sub programs aren't picking it up??

If I add

"exec 'ttbr.packerm.exec(concat)' ",
"'ddname(ISPLLIB) dsname(''SYSDB2.DQA0.SDSNLOAD'') before'"

to my @SPLGEN it works fine, but I want other users to use my REXX without having to update that?

Any ideas, things to try?
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 JCL JOB Cancel/Purge Not Working JCL & VSAM 6
No new posts OMVS Shell Script not working properly. All Other Mainframe Topics 1
No new posts Proc print in Mainframe All Other Mainframe Topics 4
No new posts FSET not working on my receive CICS 3
No new posts Mainframe jcl job with href links not... All Other Mainframe Topics 3
Search our Forums:

Back to Top