z/OS Using REXX and z/OS UNIX System Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Read the root directory into a stem and print it

z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00

This example prints the contents of the root directory to standard output:
/*   rexx   */
call syscalls 'ON'
address syscall
'readdir / root.'
do i=1 to root.0
   say root.i
end
The following line saves the results from the previous example in a text file:
   'writefile /u/schoen/root.dir 777 root.'

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014