Rich Tabor wrote:
I think you will have better luck using FI and DA instead of DD and DSN.

Huh? Why would that be so? Both {FI | DD}, and {DA | DSN} are
shown as options; all four combinations should work.

Problem seems to have been alignment (see below)

On 3/12/07, Steve Comstock <[EMAIL PROTECTED]> wrote:

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


Below works OK if "alloc" starts on a halfword boundary;
if not, then alloc's location will start one byte off
of where I expect; needed to put the label on the halfword.

-S

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

----------------------------------------------------------------------
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