Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Some of the interview Questions

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
dass dasari

New User


Joined: 14 Mar 2010
Posts: 2
Location: Hyderabad

PostPosted: Thu Aug 19, 2010 8:06 pm    Post subject: Some of the interview Questions
Reply with quote

1. How do you convert lowercase characters to uppercase in COBOL?
My answer:

1. Using INSPECT as follows
INSPECT string1 CONVERTING
"ABCDEFGHIJKLMNOPQRSTUVWXYZ” TO “abcdefghijklmnopqrstuvwxyz"

2. You can use Intrinsic function LOWER-CASE() as follows...
Move "UPPERCASE DATA" TO String1.
MOVE FUNCTION LOWER-CASE(String1) TO String2.
DISPLAY String2.


2. There is a VSAM file with variable length how can you split it up. The file has data delimited by commas
Answer: Please help me with the answer.

3. Syntax for COND code:

COND(COMPARISON CODE,RELATIONAL OPRATOR,RETURN-CODE)

4. What abend will you get if you move LOW-VALUES to a key field?

Answer: SOC7 I guess.

5. If my program has 5 STOP RUN's what will happen if first STOP RUN executes?

Answer: I said control will come to O/S irrespective of number of stop runs below it.. is this the correct answer?
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Thu Aug 19, 2010 8:29 pm    Post subject:
Reply with quote

1. Your answer and the question do not agree with one another. The question asks about converting TO upper case, your answer converts FROM upper case.

2. Are you saying the VSAM file has commas in the data records? If so, you can use INSPECT or reference modification to find each comma and use that to split the record up.

3. Your answer is not right -- COND=(stepname or procsteprefernce,relational operator,condition code)

4. Depending upon what the key looks like, you may get no abend, a S0C7 abend, duplicate record on write, or successful write -- with the little bit of data provided, there's no way to say which of these would apply -- assuming the question was about writing and not reading records (but the same answers would still apply, just worded slightly differently).

5. STOP RUN means stop run -- the first one executed stops the program, no matter how many are in the code nor where they are located.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Aug 19, 2010 8:31 pm    Post subject: Re: Some of the interview Questions
Reply with quote

dass dasari wrote:
2. There is a VSAM file with variable length how can you split it up. The file has data delimited by commas


What did the interviewer mean by "split it up"? Under what context is this question (by that, I mean is it a question about storage management and VSAM files, or does it concern application design and programming, or do you think there was some other context to this)?
Back to top
View user's profile Send private message
Ajay Baghel

Active User


Joined: 25 Apr 2007
Posts: 205
Location: Bangalore

PostPosted: Fri Aug 20, 2010 7:16 pm    Post subject:
Reply with quote

Correct Cond paramter:

COND=(Compare Code,Rel Operator,previous stepname)
COND=(Compare Code,Rel Operator)
COND=(EVEN|ONLY)
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 Viewing executing process in NDM .. q... Debb.Brant IBM Tools 0 Wed Dec 14, 2016 10:55 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am
No new posts SAS Programming - Basic Questions Techelm All Other Mainframe Topics 3 Fri Mar 18, 2016 10:53 pm
No new posts Where can i find Interview questions ... Elixir Mainframe Interview Questions 4 Sat Feb 20, 2016 12:38 am
This topic is locked: you cannot edit posts or make replies. Mainframe interview on 10th Oct 2015 ... kotesh Mainframe Jobs 0 Thu Oct 08, 2015 5:21 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us