Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 -> Mainframe Interview Questions
View previous topic :: :: View next topic  
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

jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 102
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

Active Member


Joined: 13 Jun 2007
Posts: 632
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: 2150
Location: At my coffee table

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts query to fetch record which has only ... maxsubrat DB2 12 Mon Dec 11, 2017 5:03 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us