Hi,
I am trying to use the DEFV function to retrieve the VSAM define statements so as to copy them. This a batch function. The following is the JCL and input statement being used but it does not generate the SMS parameters even though the LISTCAT command displays them.
//JS010 EXEC PGM=FMNMAIN
//IDIOFF DD DUMMY
//FMNCOB DD DUMMY Uncomment to force use of FM COBOL Compiler
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//FMNROPT DD SYSOUT=*
//FMNRPRM DD SYSOUT=*
//FMNDEFV DD SYSOUT=*
//FMNREPT DD SYSOUT=*
//FMNRSUM DD SYSOUT=*
//SYSTERM DD SYSOUT=*
//SYSIN DD *
$$FILEM SET HEADERPG=YES,PAGESIZE=999,PRTTRANS=ON
$$FILEM DEFV DSNLIST=(TSTBT.OS.I2AA.**)
/*
**************************** Bottom of Data ****************************
The following is the output for one of the files:
DEFINE CLUSTER(NAME(TSTBT.OS.I2AA.BTFACAPS.CLUSTER) -
NWCK -
NOERASE -
SHAREOPTIONS(2 3) -
INDEXED -
SPEED -
BWO(TYPECICS) -
LOG(NONE) -
EATTR(OPT) -
NOREUSE -
) DATA( -
CYLINDERS(1600 600) -
BUFFERSPACE(33792) -
CONTROLINTERVALSIZE(16384) -
FREESPACE(5 5) -
KEYS(21 0) -
RECORDSIZE(50 4089) -
NONSPANNED -
) INDEX( -
CYLINDERS(5 1) -
CONTROLINTERVALSIZE(1024) -
VOLUMES( -
DMD154 -
* -
* -
* -
* -
) -
)
The LISTCAT shows the SMS parameters:
SMSDATA
STORAGECLASS ---CIVSMRL2 MANAGEMENTCLASS-STDTOTAP
DATACLASS ------EXTENDED LBACKUP ---0000.000.0000
Thank you.
------------------------------
Girish Sajja
------------------------------
Original Message:
Sent: Mon February 26, 2024 04:22 PM
From: Girish Sajja
Subject: File Manager V15 R1 M2 - DEFV Function
Hi,
Is the DEFV function able to return SMS parameters (i.e.: DATACLASS, MANAGEMENTCLASS, STORAGE CLASS)?
I checked the options but did not find that enable generating them and the DEFV syntax does not have any additional options.
Thank you.
------------------------------
Girish Sajja
------------------------------