Chapter Contents |
Previous |
Next |
SAS Companion for the OS/390 Environment |
A generation data set (or generation) is a version of an OS/390 data set that is stored as a member of a generation data group. These generations are supported by OS/390; they differ from the generation data sets supported by SAS. For detailed information about OS/390 generations, see your IBM documentation. For information on SAS generation data sets, see the SAS Language Reference: Concepts. See also Allocating a Multivolume Generation Data Group.
Both standard external files and SAS data libraries can be stored and managed as generation data groups. The following sections describe the various methods of allocating new and existing generations.
Allocating a New Generation of a Generation Data Group |
To allocate a new generation of a generation data group, use one of the following methods:
//DD1 DD DSN=PROD.GDG(+1),DISP=(NEW,CATLG)
//DD1 DD DSN=PROD.GDG.G0008V00,DISP=(NEW,CATLG)
filename dd1 'prod.gdg.g0008v00' disp=(new,catlg);
alloc fi(dd1) da('prod.gdg.g0008v00') new
Allocating an Existing Generation of a Generation Data Group |
To access an existing generation of a generation data group, you can use either the relative form of the data set name or the absolute form in a FILENAME statement FILENAME function, JCL DD statement, or TSO ALLOCATE command.
filename gdgds 'my.gdg.data(-1)';
//DD1 DD DSN=PROD.GDG(-1),DISP=SHR
alloc fi(dd1) da('prod.gdg(-1)') shr
filename gdgds 'my.gdg.data.g0008v01';
//DD1 DD DSN=PROD.GDG.G0008V01,DISP=SHR
alloc fi(dd1) da('prod.gdg.g0008v01') shr
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.