Steve,

First of all, I assume the x'8000000' was a typo and you really meant
x'80000000'.

Is it possible that this CGI is running in ASCII-land? If so, do you
have to translate the text of the alloc statement to EBCDIC first?

If not, what is the hex representation of the bracket characters?

Would be handy to see the code segment around the call to make sure that
you are not having a senior moment :-)

 


Rob Scott
Rocket Software, Inc
275 Grove Street
Newton, MA 02466
617-614-2305
[EMAIL PROTECTED]
http://www.rs.com/portfolio/mxi_g2

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Comstock
Sent: 12 March 2007 23:46
To: [email protected]
Subject: BPXWDYN problem

OK, so I'm writing this CGI in Assembler to access a VSAM file [seemed
like a fun thing to do]. The program is reentrant and LE-conforming.

To allocate the file, I want to call BPXWDYN, but I'm having all kinds
of troubles.

You can't really CALL, you should LINK. So, I set the parm up as R1 -->
a(alloc)+x'8000000'

where alloc is

alloc    ds  0cl62
          dc  h'60'
          dc  cl60'alloc dd(meals) dsn(stnt329.train.meals) shr reuse'

then I

        LINK  EP=BPXWDYN

but I get, in R15: FFFFFFEC which is -21 decimal The doc says this is a
"key error" (it uses this term "key" a lot and never defines it, I
notice), for the first "key". But it looks good to me.

[I've also tried it all upper case; I've also tried it double-quoted
inside the single quotes, both upper-case and lower-case; always this
result.]

Anyone have any hints, suggestions, solutions?

TIA for any help.

Kind regards,


-Steve Comstock
The Trainer's Friend, Inc.

303-393-8716
http://www.trainersfriend.com

-- to be included in our opt-in list of announcements of
-- new courses and other products and services from The
-- Trainer's Friend, send an email to [EMAIL PROTECTED] 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to