CRETDS Cataloged Procedure |
CRETDS cataloged procedure creates and catalogs an empty disk data set (non-VSAM) using MVS Job Scheduler (IEFBR14 is a "do-nothing" dummy system program). If the data set with the same name already exists, it gets deleted by DELTDS step prior to the creation step. Warning! CRETDS procedure is potentially destructive (because of the DELTDS usage) and should be used with a caution and only after safe experimenting as it is described below. If you don't have clear understanding what to expect from CRETDS, i.e. if you are not sure how data set deletion works under MVS, please do not use CRETDS procedure at all. Following are parameters of the CRETDS cataloged procedure:
This simple cataloged procedure is an essential building block for other procedures and jobs — creating data sets by JCL DD operator is a common task. CRETDS procedure provides a short one-line operator to simplify this task. |
//****** Create and Catalog Disk Data Set ------ 05/31/1982–10/17/1998 //* Copyright (C) 1982–1998 by Vladimir Veytsel www.davar.net //* //CRETDS PROC U=1, - Number of disk units // V=, - Volume for the data set // S=, - Data set full name // M=TRK, - Memory allocation units (CYL/TRK/) // P=10, - Number of primary memory units // A=6, - Number of additional memory units // X=, - Memory allocation unit multiplier // D=0, - Number of library directory blocks // O=PS, - Data set organization (DSORG) // R=FB, - Record format (RECFM) // L=80, - Record length (LRECL) // B=0 - Block size (BLKSIZE) //* //DELTDS EXEC DELTDS,S=&S //* //IEFBR14 EXEC PGM=IEFBR14 //SYSUT DD UNIT=(SYSALLDA,&U),VOL=SER=&V,DSN=&S, // SPACE=(&M,(&P&X,&A&X,&D)),DISP=(,CATLG,DELETE), // DCB=(DSORG=&O,RECFM=&R,LRECL=&L,BLKSIZE=&B)
To test the CRETDS procedure create
library &SYSUID..TEST.JOB by executing the job
similar to the following (JCLLIB operator points to the private
procedure library containing CRETDS):
|
|
//DEVUVOVT JOB CLASS=T,MSGCLASS=H,NOTIFY=&SYSUID //PROC JCLLIB ORDER=&SYSUID..PGMR.PROC //TEST EXEC CRETDS,S=DEVUVOV.TEST.JOB,D=10,O=PO |
|
To check creation results use 3.4
or 3.2 to make sure the library got created
and SPACE and DCB values are correct.
|
Data Set Information Command ===> _________________________________________________________ Data Set Name . . . . : DEVVLAD.TEST.JOB General Data Current Allocation Management class . . : P180Y735 Allocated tracks . : 10 Storage class . . . : STD Allocated extents . : 1 Volume serial . . . : TST007 Maximum dir. blocks : 10 Device type . . . . : 3390 Data class . . . . . : PDS Organization . . . : PO Current Utilization Record format . . . : FB Used tracks . . . . : 1 Record length . . . : 80 Used extents . . . : 1 Block size . . . . : 27920 Used dir. blocks . : 1 1st extent tracks . : 10 Number of members . : 0 Secondary tracks . : 6 Data set name type : PDS Creation date . . . : 1998/10/17 Referenced date . . : 1998/10/17 Expiration date . . : ***None*** |
Library creation should also be confirmed by messages
in the JESYSMSG output DD of SDSF (IOF, JES Master, etc.):
|
IGD101I SMS ALLOCATED TO DDNAME (SYSUT ) DSN (DEVVLAD.TEST.JOB ) STORCLAS (STD) MGMTCLAS (P180Y735) DATACLAS (PDS) VOL SER NOS= TST007 IEF142I DEVVLADT IEFBR14 TEST - STEP WAS EXECUTED - COND CODE 0000 IGD104I DEVVLAD.TEST.JOB RETAINED, DDNAME=SYSUT |
View [and save] CRETDS.PRC text (Use [Back] button or [Alt]+[CL] to return here from the viewed text) Copyright © 1982–1998 by Go to: Davar site entry | Site contents | Site index | Mainframe | JCL | Text top |