At 8/23/2011 10:28 AM, Thomas Berg wrote:
Talking about manuals for the asm programmer: where do I find the
return codes from the OPEN macro (SVC 22)


Hi Tom,

Way back in the 1960's when I first endeavored to learn "Assembler"
(a vague term, at best), I found that what generally was supplied by
one or two manuals in any other language, required at lest 5 or 6 for
Assembler! And that was 45 years ago!.

It has not gotten better since.

So what do you need to read these days? Ok, I'll take an initial stab at it:

  - For the machine instructions (what the lay-person thinks of when
they say "Assembler", you need "z/Architecture Principles of
Operation" (SA22-7832).

  - For the actual Assembler language itself (ie, how to use the
machine instructions in various ways), you need "High Level Assembler
for z/OS & z/VM & z/VSE Language Reference" (SC26-4940).

  - For how to run the Assembler (input files, outputs, controls,
etc.), you need "High Level Assembler for z/OS & z/VM & z/VSE
Programmer's Guide" (SC26-4941).

  - For how to access datasets and read/write data, you need any one
or more of several manuals, including "z/OS DFSMS Macro Instructions
for Data Sets" (SC26-7408).

  - You will also want to look at "z/OS DFSMS: Using Data Sets" (SC26-7410).

  - For learning about various System Services needed in Assembler
programming, you will need:
      - "z/OS MVS Programming: Assembler Services Guide" (SA22-7605)
      - "z/OS MVS Programming: Assembler Services Reference, Volume
1 (ABEND-HSPSERV)" (SA22-7606)
      - "z/OS MVS Programming: Assembler Services Reference, Volume
2 (IARR2V-XCTLX)" (SA22-7607)
    And that's just for problem mode programming.

  - For Authorized mode, you will need:
      - "z/OS MVS Programming: Authorized Assembler Services Guide"
(SA22-7608)
      - "z/OS MVS Programming: Authorized Assembler Services
Reference, Volume 1 (ALE-DYN)" (SA22-7609)
      - "z/OS MVS Programming: Authorized Assembler Services
Reference, Volume 2 (EDT-IXG)" (SA22-7610)
      - "z/OS MVS Programming: Authorized Assembler Services
Reference, Volume 3 (LLA-SDU)" (SA22-7611)
      - "z/OS MVS Programming: Authorized Assembler Services
Reference, Volume 4 (SET-WTO)" (SA22-7612)

  - And then there are the "Data Areas" manuals, about six or so
just to document the layouts of useful system control blocks, data
management control blocks, and on and on and on...

  - And oh yes, you were asking about the return codes from OPEN...
That would be in:
      - "z/OS MVS Diagnosis: Reference" (GA22-7588)

    But just to warn you, for OPEn it's not the return code you
want, it's the returned bit setting in the DCB (Data Control Block)
or ACB (Asomethingorother Control Block) that you passed to OPEN.
That's documented in one or another of the aforementioned Data Areas
manuals...


Have fun!

Dave Cole              REPLY TO: [email protected]
ColeSoft Marketing     WEB PAGE: http://www.colesoft.com
736 Fox Hollow Road    VOICE:    540-456-8536
Afton, VA 22920        FAX:      540-456-6658








At 8/23/2011 10:28 AM, Thomas Berg wrote:
Talking about manuals for the asm programmer: where do I find the
return codes from the OPEN macro (SVC 22) ?

(I'm assembler coding impaired...)

:)



Regards,
Thomas Berg
_________________________________________
Thomas Berg   Specialist   A M   SWEDBANK

Reply via email to