GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe  >  IDMS
Go To First  |  Previous Question  |  Next Question 
 IDMS  |  Question 39 of 42    Print  
How to write a IDMS code to find whose employee last name is starting with J and first name starts with H.

  
Total Answers and Comments: 1 Last Update: January 29, 2009     Asked by: santhi 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 29, 2009 03:33:23   #1  
amuseham Member Since: January 2009   Contribution: 1    

RE: How to write a IDMS code to find whose employee last name is starting with J and first name starts with H.
01 WS-EMPLOYEE-NAME.
05 FIRST-INITIAL PIC X.
05 FILLER PIC X(29).
......
* WS-INITIAL-LETTER could be defined separately and set to 'J'
MOVE LOW-VALUES TO WS-EMPLOYEE-NAME.
MOVE WS-INITIAL-LETTER TO FIRST-INITIAL.
MOVE WS-EMPLOYEE-NAME TO EMPLOYEE-NAME.
* This is randomly accessing EMPLOYEE-NAME based on a partial key / string indexed * search using a 'secondary' index which is system owned. IX-EMPLOYEE-NAME is the * system owned index in this example.
OBTAIN EMPLOYEE-REC WITHIN IX-EMPLOYEE-NAME USING EMPLOYEE-NAME.
........
OBTAIN NEXT EMPLOYEE-REC WITHIN IX-EMPLOYEE-NAME.
*** The program must check for first letter in every record occurrence which it walks through that name still starts with 'J' and should exit loop / stop walking the set when when employee name does not start any longer with 'J'.

 
Is this answer useful? Yes | No

 Related Questions

A page is the smallest unit of storage in an IDMS database.  

In local there is no IDMS System running above the DBMS. It is the more efficient mode but lacks the recovery and integrity facilities of the central version (CV) control program. In CV many application 

It releases all database resources, terminates database processes, writes statistical information to IDMS and logs the checkpoint.  

It generates a bind run-unit and binds all the records for the sub-schema the program is referencing.  

Autostatus is a protocol mode which causes the expansion of each DML statement to include a perform IDMS-Status statement.  

The old joke - where the programmer thinks he is, but the DBMS knows he is not. Currency is the location within the database during run-unit execution. There are four levels of currency: current of run-unit 

IDMS uses record locks to prevent another run-unit from updating the same record.  
Latest Answer : All objects and relations beween them are 100% "described" in IDMS IDD.  So all tranzactions of any user or programmer are 100% documented. Advanced IDD administrator knows everytning about any user task or development step (about programmers ...

Locks may be shared or exclusive. Shared means that other run units can retrieve the record but can not modify it. Exclusive means that other run units can neither retrieve nor modify it. Record locks 

nn29 means that two run units are waiting to set locks on the same record and are in deadlock.  

Find tells you whether the record is actually in the database. If it is not found you save the overhead of an obtain.  


 Sponsored Links

 
Related Articles

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
 

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
 

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
 

HR Interview - How To Prepare For Your HR Interview

How To Prepare For Your HR Interview Before you begin thinking about how you are going to dress for the interview it is important to do your research first You should learn everything you can about the company you wish to work for When you have detailed information about your employer you will conve
 

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