Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
LIBDEF not working in called proc

Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: LIBDEF not working in called proc
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    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 trying to set return code in PROC tanvi110788 JCL & VSAM 16 Wed May 20, 2020 2:02 pm
No new posts Panel not found on PF3 with libdef of... harisukumaran TSO/ISPF 2 Tue Apr 28, 2020 9:00 pm
No new posts On a team working on a new project fo... zCMHII All Other Mainframe Topics 2 Mon Apr 06, 2020 9:15 pm
No new posts How efficient are you, while working ... vasanthz General Talk & Fun Stuff 0 Tue Mar 31, 2020 11:39 pm
No new posts Execute DSNTEP2 in REXX which is call... sushanth bobby CLIST & REXX 4 Wed Mar 04, 2020 3:27 pm

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