Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

SWAREQ - Getting S0C4 when using SWBLKPTR
I am using SWAREQ in unauthorized mode. When I try to access the
memory pointed to by SWBLKPTR I get a S0C4. What gives? What's the
point in having an unauthorized mode when the results are unusable?

Code:

ST     R2,SWEPAPTR             INITIALIZE EPA POINTER
USING  ZB505,R2                ESTABLISH ADDRESSABILITY TO
EPA
XC     SWAEPAX,SWAEPAX          INITIALIZE THE EPA
ST     R1,SWVAFW           MV SVA OF JFCB INTO EPA
SWAREQ  FCODE=RL,EPA=SWEPAPTR,MF=(E,SWAPARMS),UN
AUTH=YES
LR     R1,R15
DROP R2
*
SWEPAPTR DS    F
SWAPARMS SWAREQ MF=L
IEFZB505 LOCEPAX=YES
CVT DSECT=YES
IEFJESCT
IEFTIOT1
IEFJFCBN

Report this thread to moderator Post Follow-up to this message
Old Post
Tim Coffey
03-20-04 01:28 AM


Re: SWAREQ - Getting S0C4 when using SWBLKPTR
On 30 Dec 2003 06:54:57 -0800 Timothy_S_Coffey@bankone.com (Tim Coffey) wrot
e:

:>I am using SWAREQ in unauthorized mode. When I try to access the
:>memory pointed to by SWBLKPTR I get a S0C4. What gives? What's the
:>point in having an unauthorized mode when the results are unusable?

Amode?

--
Binyamin Dissen <bdissen@dissensoftware.com>
http://www.dissensoftware.com

Director, Dissen Software, Bar & Grill - Israel

Report this thread to moderator Post Follow-up to this message
Old Post
Binyamin Dissen
03-20-04 01:28 AM


Re: SWAREQ - Getting S0C4 when using SWBLKPTR
Binyamin Dissen <postingid@dissensoftware.com> wrote in message news:<4183vv02el14vvdcsr08i
92ol5r9jsgqr8@4ax.com>...
> On 30 Dec 2003 06:54:57 -0800 Timothy_S_Coffey@bankone.com (Tim Coffey) wr
ote:
>
> :>I am using SWAREQ in unauthorized mode. When I try to access the
> :>memory pointed to by SWBLKPTR I get a S0C4. What gives? What's the
> :>point in having an unauthorized mode when the results are unusable?
>
> Amode?

It's AMODE(31). Is the leading byte of the SWBLKPTR perhaps not part
of the address (maybe it's a 24-bit address). I'll run a quick test
for that.

Report this thread to moderator Post Follow-up to this message
Old Post
Tim Coffey
03-20-04 01:28 AM


Re: SWAREQ - Getting S0C4 when using SWBLKPTR
Tim Coffey wrote:
> I am using SWAREQ in unauthorized mode. When I try to access the
> memory pointed to by SWBLKPTR I get a S0C4. What gives? What's the
> point in having an unauthorized mode when the results are unusable?
>
> Code:
>
>          ST     R2,SWEPAPTR             INITIALIZE EPA POINTER
>          USING  ZB505,R2                ESTABLISH ADDRESSABILITY TO
> EPA
>          XC     SWAEPAX,SWAEPAX          INITIALIZE THE EPA
>          ST     R1,SWVAFW           MV SVA OF JFCB INTO EPA
>          SWAREQ  FCODE=RL,EPA=SWEPAPTR,MF=(E,SWAPARMS),UN
AUTH=YES
>          LR     R1,R15
>          DROP R2
> *
> SWEPAPTR DS    F
> SWAPARMS SWAREQ MF=L
>          IEFZB505 LOCEPAX=YES
>          CVT DSECT=YES
>          IEFJESCT
>          IEFTIOT1
>          IEFJFCBN


I have a possibility for you to look at (no experience, and I haven't
tried to code the interface).

The example in the book
OS/390: MVS Programming: Authorized Assembler Services Guide
shows
SWAREQ FCODE=RL,EPA=SWEPAPTR,MF=(E,SWAPARMS)  LOCATE THE JFCB
L      7,SWBLKPTR             SET THE POINTER TO THE JFCB
USING  INFMJFCB,7             ESTABLISH ADDRESSABILITY TO JFCB

Your posted code is unclear in the area of what you do after return, but
if you are trying to use the R15 contents as the pointer to the JFCB, I
believe that would cause you grief, because it is the Return Code.

The Guide also says you need to use IEFQMIDS to map to SWA Block IDs,
which is not in your posted code.

Everything else looks exactly like the manuals say it should be.

Good luck!


Report this thread to moderator Post Follow-up to this message
Old Post
Colin Campbell
03-20-04 01:28 AM


Re: SWAREQ - Getting S0C4 when using SWBLKPTR
How about STCM  R1,7,SWVA?

PF.

Tim Coffey wrote:

> I am using SWAREQ in unauthorized mode. When I try to access the
> memory pointed to by SWBLKPTR I get a S0C4. What gives? What's the
> point in having an unauthorized mode when the results are unusable?
>
> Code:
>
>          ST     R2,SWEPAPTR             INITIALIZE EPA POINTER
>          USING  ZB505,R2                ESTABLISH ADDRESSABILITY TO
> EPA
>          XC     SWAEPAX,SWAEPAX          INITIALIZE THE EPA
>          ST     R1,SWVAFW           MV SVA OF JFCB INTO EPA
>          SWAREQ  FCODE=RL,EPA=SWEPAPTR,MF=(E,SWAPARMS),UN
AUTH=YES
>          LR     R1,R15
>          DROP R2
> *
> SWEPAPTR DS    F
> SWAPARMS SWAREQ MF=L
>          IEFZB505 LOCEPAX=YES
>          CVT DSECT=YES
>          IEFJESCT
>          IEFTIOT1
>          IEFJFCBN


Report this thread to moderator Post Follow-up to this message
Old Post
Pierre Fichaud
03-20-04 01:28 AM


Re: SWAREQ - Getting S0C4 when using SWBLKPTR
In your first two statements Tim:

ST     R2,SWEPAPTR INITIALIZE EPA POINTER
USING  ZB505,R2       ESTABLISH ADDRESSABILITY TO EPA

Are you sure you want to Store R2 in SWEPAPTR before setting up EPA
addressability?  Perhaps you should be loading R2 from SWEPAPTR instead?

Cheers, Mark Dixon
em dixon at anysize dot com.



Report this thread to moderator Post Follow-up to this message
Old Post
Mark Dixon
03-20-04 01:28 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

ASM370 archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:54 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.