GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe
Go To First  |  Previous Question  |  Next Question 
 Mainframe  |  Question 26 of 55    Print  
Program for employee master creation and update and listing.hint: employee master creation file contains 10 records of 10 employees as.Emp code ename designation jd bp sl etc?

  
Total Answers and Comments: 2 Last Update: March 14, 2007     Asked by: sachin borase 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
October 18, 2006 01:23:38   #1  
ofcourseman Member Since: October 2006   Contribution: 10    

RE: program for employee master creation and updation ...
It's is a simplest model for master process.creat was implement by insert employee record(write statement for VSAM and insert for DB2) update as the name(rewrite for VSAM and update for DB2) and list was done by inquire the file/database(read for VSAM and select for DB2). If you use VSAM or other file system you should code file declaration in file section.
 
Is this answer useful? Yes | No
March 14, 2007 06:01:28   #2  
Priyakk Member Since: March 2007   Contribution: 3    

RE: Program for employee master creation and update an...

To start with lets consider sequential files to be simple. In the IO Section of the Environment Division assign a sequential file which is the master file and in the Data Division include all the field names given in the quesion under the FD entry. Do the same for a sequential file from which the data must be written to the master file.
CREATION: OPEN the input file and WRITE the records into the master file.
UPDATION: For any file to be updated it m ust be opened in the IO mode and use REWRITE to update the records whicch are already present int he master file. to add new records to the master file it must be opened in the EXTEND mode.
LISTING: To display all the records from the master file DISPLAY can be used to get the records on to the VDU.or to have the records in a new file it can be written to an another file using WRITE.


NOTE:

Everytime a file is opened in a mode to open it in an another mode...the file must be closed and then opened in the other mode.


 
Is this answer useful? Yes | No

 Related Questions

I have 3 files . 2 files have millions of records.These 2 files have one ( empnumber) common record field. i want to put those records in 3rd file , such that which records having same number in key field (empnumber)in these two files ?
Read Answers (9) | Asked by : mark

Latest Answer : Let us take an example:Total no.of Items = 50 (MAX-ITEM)Total no.of items per page = 8 (PG-ITEM)So, initially display should start with item number one. Whenever you come to the scroll screen display the first 8 items and display page down key alone.User ...
Read Answers (3) | Asked by : viji

When an output file from Mainframes has compressed fields, how do you uncompress them and save the file as a text?
Read Answers (2) | Asked by : Sreenivasan NS

What is code of copy from ps file to gdg file and copy from gdg file to ps file in jcl.how i can do?
Read Answers (5) | Asked by : Ajay Kumar Tiwari

Program for employee master creation and update and listing.hint: employee master creation file contains 10 records of 10 employees as.Emp code ename designation jd bp sl etc?
Read Answers (2) | Asked by : sachin borase

Latest Answer : At first, you need to bind your sub routine to translate them into load module.Secondly, code the interface parameter in linkage section of main program.At last, write a call statement to link the sub routine. ...
Read Answers (3) | Asked by : Rajkumar

Latest Answer : Changeman is a version and configuration control software for Mainframe, which gives you (the standard) facilities like bundling the related components (programs, JCLs etc) of a release together, version control for installation / rollback of components, ...
Read Answers (4) | Asked by : gugangugan

I want to know that is it possible by using COBOL programming? 
Latest Answer : Not going by the previous complicated ways u can check ur emulator software for file uploading facility.Go into the option 6 in the TSO screen then in ur emulator's menu select Transfer File -> Upload File from PC and browse the file u want ...
Read Answers (2) | Asked by : shivani

How to use start keyword in index(ksds) file ? Explain with real time situation where you would use this.
View Question | Asked by : naveen

What is the option in file-aid tool to fetch a particular record when a file contains million of records?
Read Answers (2) | Asked by : sdresh


 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
 

jQuery Table Row Finished Code

jQuery Table Row Finished Code The Finished Code Our second example page has demonstrated table row striping highlighting tooltips collapsing expanding and filtering Taken together the JavaScript code for this page is mosgoogle geshibot lang php" document ready function var highlighted
 

jQuery Interacting with Other Code

jQuery Interacting with Other Code We learned with our sorting and paging code that we can t treat the various features we write as islands The behaviors we build can interact in sometimes surprising ways; for this reason it is worth revisiting our earlier efforts to examine how they coexist with t
 

jQuery Completed sorting and paging code

Learning jQuery The Finished Code The completed sorting and paging code in its entirety follows mosgoogle geshibot lang php" fn alternateRowColors function tbody tr odd this removeClass even addClass odd ; tbody tr even this removeClass odd addClass even ; return this; ; document
 

Listening Skills - Master Listener

Master Listener What is Active Listening Every expert communicator already knows the importance of active listening Active listening includes the ability to perform such skills as paraphrasing mirroring and clarifying If you are already good at active listening then you realize that it is good to va
 

What is Data File

In a logical data model, the conceptual data model which is based on the business semantic is being defined. Thus, entities and relationships and corresponding table and column design, object oriented classes, and XML tags, among other things are being laid regardless of the database will be physica
 

How to develop compile and run a C program

The steps involved in building a C program are: 1. First program is created by using any text editor and the file is stored with extension as .c 2. Next the program is compiled. There are many compilers available like GNU C compiler called as gcc, Sun compiler, Borland compiler which is pop
 

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
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape