<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tech Ideas - an Initiative from Gifts2DOOR.com &#187; mainframe interview questions</title>
	<atom:link href="http://techideas.info/tag/mainframe-interview-questions/feed/" rel="self" type="application/rss+xml" />
	<link>http://techideas.info</link>
	<description></description>
	<lastBuildDate>Sun, 25 Sep 2011 16:22:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>VSAM SECTION4</title>
		<link>http://techideas.info/2010/04/vsam-section4/</link>
		<comments>http://techideas.info/2010/04/vsam-section4/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 17:12:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mainframe interview questions]]></category>
		<category><![CDATA[vsam]]></category>

		<guid isPermaLink="false">http://techideas.info/2010/04/vsam-section4/</guid>
		<description><![CDATA[







SECTION 4

Answer the following briefly:

1. Differentiate between Control Interval and Control Area.
2. How many bytes of control information are there if all records are of the same length?Specify the number of bytes used by RDFs and CIDFs.
3. Differentiate between Direct and Sequential processing.
4. What types of data sets are supported by VSAM?
5. What is a [...]]]></description>
			<content:encoded><![CDATA[<!--CusAds1--><p style="TEXT-ALIGN: center; MARGIN: 0cm 0cm 0pt"><strong>SECTION 4</strong></p>
<p style="MARGIN: 0cm 0cm 0pt">
<p style="MARGIN: 0cm 0cm 0pt"><strong>Answer the following briefly:</strong></p>
<p style="MARGIN: 0cm 0cm 0pt">
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo1; tab-stops: 18.0pt">1. Differentiate between Control Interval and Control Area.</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo2; tab-stops: 18.0pt">2. How many bytes of control information are there if all records are of the same length?Specify the number of bytes used by RDFs and CIDFs.</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo3; tab-stops: 18.0pt">3. Differentiate between Direct and Sequential processing.</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo4; tab-stops: 18.0pt">4. What types of data sets are supported by VSAM?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo5; tab-stops: 18.0pt">5. What is a cluster?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo6; tab-stops: 18.0pt">6. Specify the default action of VSAM if the specified CISZ is not valid in defining the cluster.</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo7; tab-stops: 18.0pt">7. How are records stored in each type of VSAM data set?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo8; tab-stops: 18.0pt">8. What is the function performed by VSAM ALTER?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo9; tab-stops: 18.0pt">9. What is the difference between a user catalog and a master catalog?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo10; tab-stops: 18.0pt">10. How do you specify the amount of CI to be used?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo11; tab-stops: 18.0pt">11. How do you specify the amount of CA available to a file?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo12; tab-stops: 18.0pt">12. Explain the need for free space.</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo13; tab-stops: 18.0pt">13. What does it imply, if FSPC(100 100) is specified in DEFINE CLUSTER command?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo14; tab-stops: 18.0pt">14. What is AMS? How are its services invoked?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo15; tab-stops: 18.0pt">15. Describe the various levels of password protection.</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo16; tab-stops: 18.0pt">16. What is the format of SHAREOPTIONS and why is it used?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo17; tab-stops: 18.0pt">17. In what manner the VSAM data sets can be shared with SHAREOPTION(2 3)?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo18; tab-stops: 18.0pt">18. Mention some of the important types of information that can be obtained from LISTCAT.</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo19; tab-stops: 18.0pt">19. How can you check the amount of free space available for a data set?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo20; tab-stops: 18.0pt">20. How can we obtain the status of a master catalog or a user catalog?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo21; tab-stops: 18.0pt">21. What is a VSAM model?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo22; tab-stops: 18.0pt">22. What is a reusable data set?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo23; tab-stops: 18.0pt">23. What is the function performed by VSAM REPRO?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo24; tab-stops: 18.0pt">24. What is the effect of REUSE with REPRO?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo25; tab-stops: 18.0pt">25. What is the effect of REPLACE with REPRO?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo26; tab-stops: 18.0pt">26. What is the function performed by PRINT?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo27; tab-stops: 18.0pt">27. What is a data class?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo28; tab-stops: 18.0pt">28. Mention some of the JCL parameters used for VSAM.</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo29; tab-stops: 18.0pt">29. How can you view the contents of a Data Class?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo30; tab-stops: 18.0pt">30. Differentiate between logical record access and control interval access.</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo31; tab-stops: 18.0pt">31. Differentiate between MOVE mode and LOCATE mode.</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo32; tab-stops: 18.0pt">32. What happens when a VSAM data set is requested for OPEN?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo33; tab-stops: 18.0pt">33. What is AMP and when would you use it?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo34; tab-stops: 18.0pt">34. What is IIP and when is it used?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo35; tab-stops: 18.0pt">35. Mention some of the COBOL procedure division verbs used for processing a VSAM data set.</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo36; tab-stops: 18.0pt">36. What are the limitations of COBOL in processing a VSAM data set?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo37; tab-stops: 18.0pt">37. How can a VSAM data set be shared within a region?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo38; tab-stops: 18.0pt">38. What is the effect of SPEED/RECOVERY with DEFINE CLUSTER?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo39; tab-stops: 18.0pt">39. What is the purpose of VERIFY command?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo40; tab-stops: 18.0pt">40. What is the effect of ERASE/NOERASE with DELETE CLUSTER?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo41; tab-stops: 18.0pt">41. What is an USVR? What are its functions?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo42; tab-stops: 18.0pt">42. What is the purpose of free space?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo43; tab-stops: 18.0pt">43. What function is performed by IMBED parameter?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo44; tab-stops: 18.0pt">44. What function is performed by REPLICATE parameter?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo45; tab-stops: 18.0pt">45. What is the purpose of buffer space?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo46; tab-stops: 18.0pt">46. Explain the terms front and rear key compressions.</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo47; tab-stops: 18.0pt">47. Explain the need for an alternate index.</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo48; tab-stops: 18.0pt">48. What is a PATH?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo49; tab-stops: 18.0pt">49. What functions does the UPGRADE option do?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo50; tab-stops: 18.0pt">50. What is the function of BLDINDEX?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo51; tab-stops: 18.0pt">51. What are the various utilities available for backing up of data and restoring it?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo52; tab-stops: 18.0pt">52. Why do we go for reorganizing a KSDS?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo53; tab-stops: 18.0pt">53. What are the effects of reorganization of a KSDS?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo54; tab-stops: 18.0pt">54. What is control interval ?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo55; tab-stops: 18.0pt">55. What is KSDS, ESDS,RRDS ?</p>
<p style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 18pt; mso-list: l0 level1 lfo56; tab-stops: 18.0pt">56. What is VERIFY on VSAM file ?</p>
<p style="MARGIN: 0cm 0cm 0pt; tab-stops: 18.0pt">
<p><strong>VSAM</strong></p>
<p style="MARGIN: 0cm 0cm 0pt 36pt"><strong>1.What are the different types of VSAM files available?</strong></p>
<p><strong>KSDS:</strong> Key Sequence Data Set</p>
<p style="MARGIN-LEFT: 36pt"><strong>ESDS</strong>: Entry Sequence Data Set</p>
<p style="MARGIN-LEFT: 36pt"><strong>RRDS</strong>: Relative Data Set</p>
<p style="MARGIN-LEFT: 36pt"><strong>2.What is IDCAMS ?</strong></p>
<p style="MARGIN-LEFT: 36pt">IDCAMS is the Access Method Services program. You run the IDCAMS program and supply AMS commands thru SYSIN. (examples of AMS commands are DELETE, DEFINE, REPRO etc..).</p>
<p style="MARGIN-LEFT: 36pt"><strong>3.Can AMS commands be run from the TSO prompt ?</strong></p>
<p>Yes</p>
<p style="MARGIN-LEFT: 36pt"><strong>4.Syntax of AMS modal commands ?</strong></p>
<p style="MARGIN-LEFT: 36pt">Note: these can be used only under IDCAMS and not from the TSO prompt.</p>
<p style="MARGIN-LEFT: 36pt">IF LASTCC(or MAXCC) &gt;(or &lt;,= etc..) value -</p>
<p style="MARGIN-LEFT: 36pt">THEN -</p>
<p style="MARGIN-LEFT: 36pt">DO -</p>
<p style="MARGIN-LEFT: 36pt">command set (such as DELETE, DEFINE etc..)</p>
<p style="MARGIN-LEFT: 36pt">ELSE -</p>
<p style="MARGIN-LEFT: 36pt">DO -</p>
<p style="MARGIN-LEFT: 36pt">command set</p>
<p style="MARGIN-LEFT: 36pt">
<p style="MARGIN-LEFT: 36pt">LASTCC &#8211; Condition code from the last function(such as delete) executed</p>
<p style="MARGIN-LEFT: 36pt">MAXCC &#8211; Max condition code that was returned by any of the prev functions</p>
<p style="MARGIN-LEFT: 36pt">SET is also a valid AMS command. SET LASTCC (or MAXCC) = value</p>
<p style="MARGIN-LEFT: 36pt">The maximum condition code is 16. A cond code of 4 indicates a warning. A cond code of 8 is usually encountered on a DELETE of a dataset that is not present.</p>
<p style="MARGIN-LEFT: 36pt"><strong>5.Under IDCAMS , multiple functions can be executed, each of which returns a cond code. What will be the condition code returned to the operating system ?</strong></p>
<p style="MARGIN-LEFT: 36pt">The maximum condition code generated is returned as the condition code of the IDCAMS step.</p>
<p style="MARGIN-LEFT: 36pt"><strong>6.What is Control Interval, Control Area</strong></p>
<p style="MARGIN-LEFT: 36pt">Control Interval is analogous to a physical block for QSAM files. It is the unit of i/o. Must be between 512 bytes to 32 k. Usually either 2K or 4K. A larger control interval increases performance for sequential processing while the reverse is true for random access. Under CICS when a record is locked, the entire CI gets locked.</p>
<p style="MARGIN-LEFT: 36pt">Control area is a group of control intervals. CA is used during allocation. CA size is calculated based on the allocation type (cyl, tracks or records) and can be max of 1 cylinder</p>
<p style="MARGIN-LEFT: 36pt"><strong>7.What is FREESPACE ?</strong></p>
<p style="MARGIN-LEFT: 36pt">Coded in the DEFINE as FREESPACE(ci ca) where ci is the percentage of each control interval to be left free for insertions, ca is the percentage of control intervals in each control area to be left empty.</p>
<p style="MARGIN-LEFT: 36pt"><strong>8.How do you decide on optimum values for CI, FREESPACE etc&#8230;</strong></p>
<p style="MARGIN-LEFT: 36pt">CI size should be based on record length, type of processing. Usually CI is 4K. If record length is larger(&gt;1K), chose 6K or 8K.</p>
<p style="MARGIN-LEFT: 36pt">FREESPACE should be large if more number of insertions are envisaged. Usual values are (20 20) when heavy updates are expected. CI size can be calculated.</p>
<p style="MARGIN-LEFT: 36pt"><strong>9.Would you specify FREESPACE for an ESDS?</strong></p>
<p style="MARGIN-LEFT: 36pt">No. Because you cannot insert records in an ESDS, also when you rewrite a record, it must be of the same length. Thus putting any value for freespace does not make any sense.</p>
<p style="MARGIN-LEFT: 36pt"><strong>10.What is SHAREOPTS ?</strong></p>
<p style="MARGIN-LEFT: 36pt">SHAREOPTS is a parameter in the DEFINE and specifies how an object can be shared among users. It is coded as SHAREOPTS(a b), where a is the cross region share option ie how two or more jobs on a single system can share the file, while b is the cross system share option ie how two or more jobs on different MVSes can share the file. Usual value is (2 3).</p>
<p style="MARGIN-LEFT: 36pt"><strong>11.What is the meaning of each of the values in SHAREOPTS(2 3)?</strong></p>
<p style="MARGIN-LEFT: 36pt">Value of 2 for cross region means that the file can be processed simultaneously by multiple users provided only one of them is an updater. Value of 3 for cross system means that any number of jobs can process the file for input or output (VSAM does nothing to ensure integrity).</p>
<p style="MARGIN-LEFT: 36pt"><strong>12.How do you define a KSDS ?</strong></p>
<p style="MARGIN-LEFT: 36pt">DEFINE CLUSTER(cluster name) with the INDEXED parameter. Also specify the ds name for the DATA component &amp; the ds INDEX component. Other important parms are RECORDSIZE, KEYS, SHAREOPTIONS.</p>
<p style="MARGIN-LEFT: 36pt"><strong>13.How do you define an ALTINDX ? How do you use ALTINDXs in batch, CICS pgms ?</strong></p>
<p style="MARGIN-LEFT: 36pt">DEFINE ALTERNATEINDEX. Important paramters are RELATE where you specify the base cluster name, KEYS, RECORDSIZE,SHAREOPTIONS,UNIQUEKEY(or NONUNIQUEKEY), DATA(ds name for the data component), INDEX(ds name for the index component).</p>
<p style="MARGIN-LEFT: 36pt">Then DEFINE PATH. Important paramters are NAME (ds name for the path), PATHENTRY (ds name of the alternate index name), UPDATE(or NOUPDATE) which specifies whether an alt index is updated when a update to the base cluster takes place.</p>
<p style="MARGIN-LEFT: 36pt">Then BLDINDEX. Parameters are INDATASET(ds name of base cluster), OUTDATASET(ds name of AIX).</p>
<p style="MARGIN-LEFT: 36pt">Using alternate indexes in batch pgms:</p>
<p style="MARGIN-LEFT: 36pt">In the JCL, you must have DD stmts for the cluster and for the path(s). In the cobol pgm, SELECT .. ASSIGN TO ddname for base cluster RECORD KEY IS&#8230; ALTERNATE RECORD KEY IS..</p>
<p style="MARGIN-LEFT: 36pt">Using alternate indexes in CICS pgms:</p>
<p style="MARGIN-LEFT: 36pt">FCT entries must be created for both base cluster &amp; the path. To read using the alternate index, use the dd name of the path in CICS file control commands.</p>
<p style="MARGIN-LEFT: 36pt"><strong>14.What happens when you open an empty VSAM file in a COBOL program for input?</strong></p>
<p style="MARGIN-LEFT: 36pt">A VSAM file that has never contained a record is treated as unavailable. Attempting to open for input will fail. An empty file can be opened for output only. When you open for output, COBOL will write a dummy record to the file &amp; then delete it out.</p>
<p style="MARGIN-LEFT: 36pt"><strong>15.How do you initialize a VSAM file before any operation? a VSAM with alternate index?</strong></p>
<p>Can write a dummy program that just opens the file for output &amp; then closes it.</p>
<p style="MARGIN-LEFT: 36pt"><strong>16.What does a file status of 02 on a VSAM indicate?</strong></p>
<p style="MARGIN-LEFT: 36pt">Duplicate alternate key . Happens on both input and output operation</p>
<p style="MARGIN-LEFT: 36pt"><strong>17.How do you calculate record size of an alternate cluster? Give your values for both unique and non-unique.</strong></p>
<p style="MARGIN-LEFT: 36pt">Unique Case: 5 + ( alt-key-length + primary-key )</p>
<p style="MARGIN-LEFT: 36pt">Nonunique Case: 5 + ( alt-key-length + n * primary-key )</p>
<p style="MARGIN-LEFT: 36pt">where n = # of duplicate records for the alternate key</p>
<p style="MARGIN-LEFT: 36pt">???? Ramesh &#8211; can you explain ?</p>
<p style="MARGIN-LEFT: 36pt"><strong>18.What is the difference between sequential files and ESDS files?</strong></p>
<p style="MARGIN-LEFT: 36pt">Sequential(QSAM) files can be created on tape while ESDS files cannot.</p>
<p style="MARGIN-LEFT: 36pt">Also, you can have ALTINDEX for an ESDS while no such facility exists for QSAM files.</p>
<p style="MARGIN-LEFT: 36pt"><strong>19.How do you load a VSAM data set with records ?</strong></p>
<p>Using the REPRO command.</p>
<p style="MARGIN-LEFT: 36pt"><strong>20.How do you define a GDG ?</strong></p>
<p style="MARGIN-LEFT: 36pt">Use the DEFINE GENERATIONDATAGROUP command. In the same IDCAMS step, another dataset must be defined whose DCB parameters are used when new generations of the GDG are created. This dataset is known as the model dataset. The ds name of this model dataset must be the same as that of the GDG, so use a disp of keep rather than catlg and also specify space=(trk,0)</p>
<p style="MARGIN-LEFT: 36pt"><strong>21.Do all versions of the GDG have to be of the same record length ?</strong></p>
<p>No, the DCB of the model dataset can be overridden when you allocate new versions.</p>
<p style="MARGIN-LEFT: 36pt"><strong>22.How are different versions of GDG named ?</strong></p>
<p>base-file-name.GnnnnnV00 where nnnn= generation number (upto 255).</p>
<p>nnnn will be 0000 for the 1st generation.</p>
<p style="MARGIN-LEFT: 36pt"><strong>23.Suppose 3 generations of a GDG exist. How would you reference the 1 st generation in the JCL? -</strong></p>
<p style="MARGIN-LEFT: 36pt">Use GDG name(-2).</p>
<p style="MARGIN-LEFT: 36pt"><strong>24.Suppose a generation of GDG gets created in a particular step of a proc. How would you refer the current generation in a subsequent step? What would be the disposition of this generation now? -</strong></p>
<p style="MARGIN-LEFT: 36pt">Relative generation numbers are updated only at the end of the job, not at the end of a step. To allocate a new generation, we would be using (+1) with a DISP of (NEW,CATLG,DELETE). To refer to this in a subsequent step in the same job, we would again use (+1) but with a DISP of SHR or OLD.</p>
<p style="MARGIN-LEFT: 36pt"><strong>25.What more info you should give in the DD statement while defining the next generation of a GDG? -</strong></p>
<p style="MARGIN-LEFT: 36pt">Give (+1) as the generation number, give (new,catlg) for disp, give space parameter, can give the dcb parameter if you want to override the dcb of the model dataset.</p>
<p style="MARGIN-LEFT: 36pt"><strong>26.Assuming that the DEFINE jcl is not available, how do you get info about a VSAM file&#8217;s organisation ?</strong></p>
<p>Use the LISTCAT command.</p>
<p style="MARGIN-LEFT: 36pt"><strong>27.During processing of a VSAM file, some system error occurs and it is subsequently unusable . What do you do ?</strong></p>
<p>Run VERIFY.</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><strong>VIRTUAL STORAGE ACCESS METHOD</strong></p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><strong>DBT Adivosor to tune vsam definitions ci size and freespace requirements</strong></p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><strong>DataPacker/VSAM &#8212;BMC DASD savings up to 80%</strong></p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">AMP PARM</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">AMP = (BUFNI (# I/O BUFFERS), bufnd # 1/0S TO BE PROCESSED)</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">DELETE</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">DEFINE CLUSTER</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">NAME</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">INDEXED</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">KEYS</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">FREESPACE FREE BYTES (X,Y) X = % OF fb IN ci/y= %ci/ca</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">RECORDSIZE</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">SHAREOPTIONS (3 3)</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">SPEED</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">NOIMBED</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">UNIQUE</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">NOERASE</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">NOWRITECHECK</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">NOREPLICATE</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">NONSPANNED</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">SHARE</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">DATA</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">NAME</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">CONTROLINTERVALSIZE(4096)</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">CYLINDERS</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">OWNER</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">VOLUMES(* * *)</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">21</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">INDEX</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">SAME AS DATA/NO OWNER</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">SET MAXCC = 0 AT LOAD,COND=(0,ne)</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">ALTERNATE INDEX</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">DEFINE AIX</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">NAME</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">FREESPACE</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">KEYS</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">OWNER</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">RECORDSIZE</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">RELATE</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">SHAREOPTIONS (2 3)</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">UNPGRADE</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">NUNQK</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">DATA</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">NAME</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">CISZ</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">VOLUMES</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">INDEX</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">NAME/CYL/VOLUMES</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">BLDINDEX INDATASET/OUTDATASET</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">DEFINE PATH NAME/PATHENTRY</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">DEFINE A RELATIONSHIP BETWEEN AN ALTERNATE INDEX AND ITS BASE CLUSTER</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">LISTCAT</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">AMS ACCESS METHOD SERVICES IDCAMS UTILITY</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">DEFINE/REPRO/PRINT/LISTCAT</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">VIRTUAL STORAGE ACCESS METHOD</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">ORGANIZATIONS:</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">ESDS ENTRY SEQUENCED DATA SET LOADED IN SEQ</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">LOGS/JOURNALS OR rba RELATIVE BLOCK ACCESS</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">KSDS KEY SEQUENCED DATA SET INDEXED</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">MOST</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">RRDS RELATIVE RECORD DATA SET RECORD LOACATION</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">RELATIVE TO</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">START OF DATASET</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">RRN RELATIVE RECORD NUMBER</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">FILE MAINTENANCE, DATA PORTABILITY, DATA SECURITY</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">ALTERNATE INDEX EXAMPLE</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">ACCOUNT/TELEPHONE</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">DELETE</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">DEFINE ALTERNATEINDEX</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">DEFINE PATH/PATHENTRY</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">BLDINDEX</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">IMPROVE KSDS/VSAM</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">PLACE INDEX AND DATA ON A SEPARATE PACK</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">USE IMBED OPTION TO STORE SEQUENCE SET RECORD FOR EACH CA</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">ASSIGNMENT OF FREE SPACE</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">STORAGE DATE COMPONENTS ON MULTIPLE VOLUMES</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">USE dbt ADVISOR TO TUNE vsam FILE DEFINTIONS, I.E. cisize AND freeSPACE</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">UsE STROBE TO ANALYZE CPU USAGE</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">22</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">Vsam ASSIST FOR REORGS</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">VERIFY IF A PROGRAM ABENDS IN MIDDLE OF PROCESSING FILE AY REMAIN OPEN</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">IDCAMS/CLUSTER</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">RECORDS/VOLUME/KEY</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">SHAREOPTION</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">CROSS SYSTEM/REGION SHARING</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">CI CONTROL INTERVAL CONTINUOUS AREAS OF AUXILIARY STORAGE</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">WHERE RECORDS RESIDE</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">CA CONTROL AREA</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">VSAM I/O PLUS VIOCTL DD CARD ADDED TO CALCULATE BUFFER AREAS AND</p>
<p style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan">TRANSMITTING DATA AND INDEX CONTROL INTERVALS BETWEEN VRITUAL AND AUX</p>
<p>STORAGE</p>
<p style="MARGIN: 0cm 0cm 0pt; tab-stops: 18.0pt">
<p style="MARGIN: 0cm 0cm 0pt">

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://techideas.info/2010/04/vsam-section4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

