Lionel, Doesn’t the STDOUT parameter to BPXWUNIX need to be a string that contains the stem value and not the stem itself? I.E.:
call bpxwunix 'cd /etc/ && ls -al',,’list.’ Note the quotes around the stem value. Peter From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Lionel B Dyck Sent: Saturday, January 25, 2025 3:10 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx invoking bpxwunix This worked for me cmd = 'cd /etc && ls -al' call bpxwunix cmd,,out. as did this call bpxwunix 'cd /etc/ && ls -al',,list. hope this helps On Sat, Jan 25, 2025 at 1:47 PM esst...@juno.com <esst...@juno.com> wrote: > > Hello LionelI issued call bpxwunix 'cd /test/app/cics/java/work_dir/ && > ls-la',,out. > . > ANd I received the same results; where the data returned is my Home Directory > and NOT the directory > i requested. > . > Thanks > ---------- Original Message ---------- > From: Lionel B Dyck <0000057b0ee5a853-dmarc-requ...@listserv.ua.edu> > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: Rexx invoking bpxwunix > Date: Sat, 25 Jan 2025 09:39:06 -0600 > > try this > > call bpxwunix 'cd /test/app/cics/java/work_dir/ && ls-la',,out. > > On Sat, Jan 25, 2025 at 9:36 AM esst...@juno.com <esst...@juno.com> > wrote: > > > > .Hello -.Anyone with experience with Rexx calling bpxwunix ?I am not a Rexx > > person -.The Rexx code below works fine, I even have another version of the > > codethat writes the directory list to a sequential file -.The issue is the > > ls -la commend always list my USS Home directory -It does not list the > > directory specified in the cd command -.As far as I know; ADDRESS OMVS > > does not exist -So how can I get the call to bpxwunix to honor the > > directory I want to point to ? . -/* REXX */Say 'REX2 Entered' > > call bpxwunix 'cd /test/app/cics/java/work_dir/',,out. > > call bpxwunix 'ls -la',,out. > > Do outx = 1 to OUT.0 > > Say 'OUT.'outx '=' OUT.outx > > End outx > > Say 'REX2 Exit' > > EXIT 0..Any suggestions?.paul This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN