example-iefssreq

command
v2.0.0-...-ae0ad55 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

README

An example of using the MVS macro IEFSSREQ

To build

go build -o iefssreq

To run

./iefssreq

IEFSSREQ is a MVS macro described in https://www.ibm.com/docs/en/zos/2.5.0?topic=subsystem-making-request-iefssreq-macro

This macro is a 31-bit macro and its entry point is acquired by navigating mvs control blocks. In this example, it is implemented directly in Go assembly in utils/utils.s function IefssreqX You can find out how to obtain the entry point by assembling IEFSSREQ with HLASM. The Go assembly follows the same method. The extra wrap of SAM31 and SAM64 around BALR is for address mode switch to amode-31 and back. This macro requires all its arguments to be in below-the-bar storage, so in this example we put them in a structure and acquire the storage with utils.Malloc31. All character arguments are converted to EBCIDC with utils.AtoE

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL