z/OS Using REXX and z/OS UNIX System Services
Previous topic |
Next topic
|
Contents
|
Contact z/OS
|
Library
|
PDF
Contents (exploded view)
z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00
Abstract for Using REXX and z/OS UNIX System Services
z/OS Version 2 Release 1 summary of changes
Using TSO/E REXX for z/OS UNIX processing
Host command environments for z/OS UNIX processing
The SYSCALL environment
Running a REXX program from TSO/E or MVS batch
Establishing the SYSCALL environment
Ending the SYSCALL environment
Establishing and deleting the signal interface routine
The SH environment
Running a REXX program from the z/OS shells or from a program
Using external functions and subroutines
The TSO command environment
Command input
Command output
Return codes
Examples
Variable scope
Writing setuid and setgid REXX programs
Input and output for z/OS UNIX processing
Using standard input, output, and error (file descriptors 0, 1, and 2)
Using SYSCALL commands
Using EXECIO
Exit status from a REXX program
Tokens returned from the PARSE SOURCE instruction
Running from a z/OS shell or from a program
Example
Running from TSO/E or batch
Using the REXX signal services
Using immediate commands
Moving a REXX program from TSO/E to a z/OS shell
Using argv and environment variables
PGM1:
PGM2:
Sample execution
Customizing the z/OS UNIX REXX environment
Performance in the SYSCALL environment
Authorization
z/OS UNIX REXX programming services
Creating a z/OS UNIX REXX environment from an application
Running the REXX program
Example: C/370 program
The syscall commands
Specifying a syscall command
Specifying numerics
Specifying strings
Using predefined variables
Return values
Returned from the SYSCALL environment
Returned from the SH environment
Syscall command descriptions
access
acldelete
acldeleteentry
aclfree
aclget
aclgetentry
aclinit
aclset
aclupdateentry
alarm
catclose
catgets
catopen
cert
chattr
chaudit
chdir
chmod
chown
close
closedir
creat
dup
dup2
exec
extlink
fchattr
fchaudit
fchmod
fchown
f_closfd
f_control_cvt
fcntl
f_dupfd
f_dupfd2
f_getfd
f_getfl
f_getlk
fork
forkexecm
fpathconf
f_setfd
f_setfl
f_setlk
f_setlkw
f_settag
fstat
fstatvfs
fsync
ftrunc
getcwd
getegid
geteuid
getgid
getgrent
getgrgid
getgrnam
getgroups
getgroupsbyname
getlogin
getment
getmntent
getpgrp
getpid
getppid
getpsent
getpwent
getpwnam
getpwuid
getrlimit
getuid
gmtime
ioctl
isatty
kill
lchown
link
lseek
lstat
mkdir
mkfifo
mknod
mount
msgget
msgrcv
msgrmid
msgset
msgsnd
msgstat
open
opendir
pathconf
pause
pfsctl
pipe
pt3270
quiesce
rddir
read
readdir
readfile
readlink
realpath
rename
rewinddir
rmdir
setegid
seteuid
setgid
setgrent
setgroups
setpgid
setpwent
setregid
setreuid
setrlimit
setsid
setuid
shmat
shmdt
shmget
shmlkdestroy
shmlkinit
shmlkobtain
shmlkrelease
shmrmid
shmset
shmstat
sigaction
sigpending
sigprocmask
sigsuspend
sleep
spawn
spawnp
stat
statfs
statvfs
strerror
symlink
sysconf
time
times
trunc
ttyname
umask
uname
unlink
unmount
unquiesce
utime
wait
waitpid
write
writefile
Examples: Using syscall commands
Read the root directory into a stem and print it
Open, write, and close a file
Open a file, read, and close it
List all users and groups
Display the working directory and list a specified directory
Parse arguments passed to a REXX program: the getopts function
Count newlines, words, and bytes
Obtain information about the mounted file system
Mount a file system
Unmount a file system
Run a shell command and read its output into a stem
Print the group member names
Obtain information about a user
Set up a signal to enforce a time limit for a program
List the ACL entries for a file
z/OS UNIX REXX functions
REXX I/O functions
Opening a stream implicitly
Opening a stream explicitly
Process streams
bpxwunix()
charin()
charout()
chars()
chmod()
convd2e()
directory()
environment()
exists()
getpass()
linein()
lineout()
lines()
outtrap()
procinfo()
rexxopt()
sleep()
stream()
submit()
syscalls()
BPXWDYN: a text interface to dynamic allocation and dynamic output
Calling conventions
REXX external function parameter list
Conventional MVS variable-length parameter string
Conventional MVS parameter list
Null-terminated parameter string
Request types
Keywords
BPXWDYN return codes
Key errors
Error codes for dynamic allocation
Error codes for dynamic output
Message processing
Requesting dynamic allocation
Requesting dynamic concatenation
Requesting dynamic unallocation
Requesting allocation information
Requesting dynamic output
Freeing an output descriptor
Examples: Calling BPXWDYN from a REXX program
Example: calling BPXWDYN from C
Virtual file system (VFS) server syscall commands
Security
Tokens
v_close
v_create
v_fstatfs
v_get
v_getattr
v_link
v_lockctl
v_lookup
v_open
v_mkdir
v_read
v_readdir
v_readlink
v_reg
v_rel
v_remove
v_rename
v_rmdir
v_rpn
v_setattr
v_setattro
v_symlink
v_write
Examples: Using virtual file system syscall commands
List the files in a directory
Remove a file or empty directory
REXX predefined variables
Setting permissions for files and directories
Position 1
Positions 2, 3, and 4
Example: using BITOR and BITAND to set mode bits
Copyright IBM Corporation 1990, 2014