Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Max, Min and Min Editable Length of VSAM Record

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Interview Questions
Author Message
keerthi

New User


Joined: 23 Mar 2005
Posts: 25

PostPosted: Fri Sep 30, 2005 11:29 am    Post subject: Max, Min and Min Editable Length of VSAM Record
Reply with quote

Please answer the following questions.

1) What are the Max, Min and Min Editable Length of VSAM Record?
2) Can we directly use VSAM dataset or we have to follow any initialization process? What is that installation Process?

Thanks in advance,
Keerthi.
Back to top
View user's profile Send private message
References
jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 106
Location: Douglasville, GA USA

PostPosted: Sat Oct 01, 2005 2:06 am    Post subject:
Reply with quote

A VSAM record must be at leaset 1 byte and can be 32,760 bytes or maybe larger. If the record exceeds 32760 bytes some utilities will not work. I don't know what you mean by "editable". The file does not need to be initialized unless it will be openned I-O the first time it is openned, in which case it must contain at least 1 record. The following logic will create a low value record.
//*--------------------------------------------------------------------*
//* CREATE NULL RECORD ?
//*--------------------------------------------------------------------*
//CRDUMMY EXEC PGM=IEBDG
//DUMMYOUT DD DSN=&&DUMMY,
// LRECL=898,RECFM=FB,DSORG=PS,UNIT=VIO,
// SPACE=(TRK,(1,1)),DISP=(NEW,PASS)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DSD OUTPUT=(DUMMYOUT)
FD NAME=FIELD1,LENGTH=898,FILL=X'00',PICTURE=2,'AL'
CREATE NAME=(FIELD1)
END
//*
To define the VSAM cluster and repro the dummy record use the following JCL
//*--------------------------------------------------------------------*
//* DEFINE CLUSTER *
//*--------------------------------------------------------------------*
//JSTEP10 EXEC PGM=IDCAMS
//DUMMYIN DD DSN=&&DUMMY,DISP=(OLD,DELETE)
//SYSIN DD *
/* ....+....1....+....2....+....3....+....4.... */
DELETE IN.T.COMPID.DATABASE.STAT PURGE CLUSTER
/*------------------------------------------------------------------*/
/* SET MAXCC TO ZERO */
/*------------------------------------------------------------------*/
SET MAXCC = 0
/*------------------------------------------------------------------*/
/* DEFINE CLUSTERS */
/*------------------------------------------------------------------*/
DEFINE -
CLUSTER -
(NAME(IN.T.COMPID.DATABASE.STAT) -
KEYS (2 0) -
OWNER(1) REUSE SPEED -
SHAREOPTIONS(3 3) -
INDEXED) -
DATA (NAME(IN.T.COMPID.DATABASE.STAT.DATA) -
CISZ(4096) -
TRK(1 1) -
RECORDSIZE(898 898) -
VOLUMES(TEST90)) -
INDEX (NAME(IN.T.COMPID.DATABASE.STAT.INDEX) -
TRK(1 1) -
VOLUMES(TEST90))
/*------------------------------------------------------------------*/
/* REPRO FILES */
/*------------------------------------------------------------------*/
REPRO INFILE(DUMMYIN) -
OUTDATASET(IN.T.COMPID.DATABASE.STAT)
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//*
Back to top
View user's profile Send private message
stodolas

Senior Member


Joined: 13 Jun 2007
Posts: 647
Location: Wisconsin

PostPosted: Tue Aug 07, 2007 10:29 pm    Post subject:
Reply with quote

Some utilities won't work? I haven't found one that will when I define a VSAM with a SPANNED parameter...

Do you know of any that can handle record lengths greater than 32,760? File-Aid won't.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 1218
Location: At my desk

PostPosted: Tue Aug 07, 2007 10:46 pm    Post subject:
Reply with quote

jon_s_rice wrote:
in which case it must contain at least 1 record.
IIRC, we used to load the first dummy record and then delete it, leaving the file empty but no longer in load mode.......
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Interview Questions All times are GMT + 6 Hours
Page 1 of 1