GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Mainframe  >  JCL
Go To First  |  Previous Question  |  Next Question 
 JCL  |  Question 11 of 126    Print  
What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?
DISP=OLD denotes exclusive control of the dataset; DISP=SHR means there is no exclusivity.


  
Total Answers and Comments: 1 Last Update: October 11, 2005   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
October 11, 2005 19:59:53   #1  
Saradha        

RE: What is the difference between specifying DISP=OLD...

DISP=OLD --> Exclusive HOLD. Read from beginning of dataset. But if u write, then it will overwrite on existing data. i.e old data is lost.

DISP=MOD --> Exclusive HOLD. You can write to the end of the file without loosing your old data (i.e append the data to the existing file).

DISP=SHR --> multiple user can share the data. Its read-only file.

With Regards to COBOL:

DISP=SHR and OPEN EXTEND in-file => will append the file at the end. Used mainly for line-sequntial file (i.e notepad with extension .TXT or .DAT)

DISP=MOD and OPEN I-O =>  will also append the file at the end. (not used for line sequantial file)


 
Is this answer useful? Yes | No

 Related Questions

A keyword in a JCL statement may appear in different places and is recognized by its name, eg. MSGCLASS in the JOB statement. The opposite is positional words, where their meaning is based on their position 
Latest Answer : positional and keyword parameters comes to jcl statements keyword means for information ...

The DD statement links the external dataset name (DSN) to the DDNAME coded within the executing program. It links the file names within the program code to the file names know to the MVS operating system. 
Latest Answer : Its the Data Definition (DD) statement It should not exceed 8 charactersIt is normally the identifier name which we give in the cobol program to identify the that the trailing DSN is for the particular DD name for eg:COMMLY   ...

PROC stands for procedure. It is 'canned' JCL invoked by a PROC statement. An instream PROC is presented within the JCL; a catalogued PROC is referenced from a proclib partitioned dataset.  
Latest Answer : PROC : It is nothing but a procedure that we used in the JCL . Instream procedure means it will be implicit with in the JCL statements  like PERFORM statements in COBOL (means) - > calling the same procedure for different inputs ...

A symbolic is a PROC placeholder; the value for the symbolic is supplied when the PROC is invoked, eg. &symbol=value. An override replaces the PROC's statement with another one; it substitutes for 
Latest Answer : Symbolic parameters are placed in the EXEC statements , and during compilation of the JCL, will replace the value. A typical use of Symbolic variables is, we can write generic PROC to be executed in various test and production regions by using Symbolic ...

What is a GDG? How is it referenced? How is it defined? What is a MODELDSCB? GDG stands for generation data group. It is a dataset with versions that can be referenced absolutely or relatively. It is defined by an IDCAMS define generation datagroup execution.

DISP=OLD denotes exclusive control of the dataset; DISP=SHR means there is no exclusivity.  
Latest Answer : DISP=OLD --> Exclusive HOLD. Read from beginning of dataset. But if u write, then it will overwrite on existing data. i.e old data is lost. DISP=MOD --> Exclusive HOLD. You can write to the end of the file without loosing your old ...

DISP=MOD is used when the dataset can be extended, ie, you can add records at the end of an existing dataset.  
Latest Answer : mod is a key word which is used with disp parameter as DISP=MODIt is used for if the dataset already exit then add the records to dataset at end of the data set. ...

Data definition name is the eight character designation after the // of the DD statement. It matches the internal name specified in the steps executing program. In COBOL that's the name specified 
Latest Answer : The DD name is the logical 8 characters file name which alllows the pplication program to identify or tag the dataset.Whereas the DSN is the physical file name used by the MVS to identify the dataset.like in any application program we can write ...in ...

BLKSIZE specifies the number of bytes 
Latest Answer : lrecl means length of the files record length but blk size means the number of records mvs system will read together when we will issue a read command mvs does not read single record it reads whole block and put it in buffer next time it reads from buffer ...

Latest Answer : Coding the status filed as OLD results in the OS searching for an existing data set of the name specified. If the file is written to then its old data will be lost, replaced by the new dataSetting DISP as SHR is identical to OLD except when OLD gives ...
Read Answers (5) | Asked by : Sasmita


 Sponsored Links

 
Related Articles

ODP.NET - Presenting Master-Detail Information Using a Dataset

ODP NET Presenting Master Detail Information Using a Dataset As mentioned before a DataSet object can have its own relations between data tables existing in it We can add these relations dynamically at the client side within an application to represent master detail or hierarchical information The f
 

ODP.NET - Populating a Dataset with a Single Data Table

ODP NET Populating a Dataset with a Single Data Table A dataset is simply a group of data tables These data tables can be identified with their own unique names within a dataset You can also add relations between data tables available in a dataset mosgoogle The following code gives you the details o
 

What is difference between call by value and call by reference in function?

The arguments passed to function can be of two types 1. Values passed 2. Address passed The first type refers to call by value and the second type refers to call by reference. For instance consider program1 main() { int x=50, y=70; interchange(x,y); printf(“x=%d y=%d”,x,
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Mainframe Features

Mainframe Features In this Mainframe tutorial you will learn about features of Mainframe Processing power memory capacity performance computing multiple operating system time sharing reliability serviceability availability clustering technology and other features available in Mainframe mosgoogle cen
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

Difference between Scholarship and Grant

Difference between Scholarship and Grant While both scholarships and grants allow students to pay for their tuition without having to pay the money back there are a number of key differences between the two Knowing the difference between grants and scholarship will make it much easier for students t
 

HR Interview - HR Interview Mistakes You Will Want To Avoid

HR Interview Mistakes You Will Want To Avoid The job interview can be a stressful process This is especially true for those who are going after a competitive position Your nonverbal communication combined with the answers you give during the interview will determine if you are hired mosgoogle While
 

HR Interview - Behavioral HR Interviews

Behavioral HR Interviews As the name implies a behavioral interview is an interview that is held by a human resources department to determine if an applicant has the behaviors that are appropriate for a job The company must know how an applicant will behave in a certain situations mosgoogle The logi
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape