Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel

//S1 EXEC UDMPRC

//APOUT DD DSN=APP.DATA.DAILY,DISP=SHR

//UNVSCR DD *

set  _echo=yes

set  _halton=warn

open  unix=sol9 user=top098 pwd=p100m

filesys  local=dd

cd  unix=/opt/app/data

mode  type=text

copy  unix=data10.txt local=APOUT

quit  /*

Anchor
1045510
1045510
For this first z/OS example, the following is a line-by-line explanation:

...

Panel

//S1 EXEC UDMPRC

//UNVSCR DD *

set  _echo=yes

set  _halton=warn

open  unix=sol9 user=top098 pwd=p100m

cd  unix=/opt/app/data

mode  type=text

attrib  local createop=replace

copy  unix=data10.txt local='app.data.daily'

quit  /*

Anchor
1045536
1045536
The DSN file system example is basically the same as the DD file system example, with these changes:

  • Removal of the filesys command (line 4 in the DD file system example), since the default file system for the z/OS manager is DSN.
  • Addition of line 6, which sets the local attribute createop. createop controls how a file is created. By default, its value is new, indicating that only new files are created and existing files are not written over (replaced). In this example, the value is being set to replace, which specifies that if the file exists, it should be replaced; otherwise, it is created.

...