IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

intersting questions


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
syams

New User


Joined: 28 May 2005
Posts: 2
Location: chennai

PostPosted: Sat May 28, 2005 10:10 pm
Reply with quote

Hi
I got a few intresting questions in recent inter view

A cobol program is given like this

---
----
section1
para-int
perform para-a
perform para-b
perform para-c
perform para-d
stop run.


para-a
statement-1
statement-2 goto para b. (observe care fully)
statement-3
stament -4
para-b
statement-1
statement-2
statement-3
stament -4
para-c
statement-1
statement-2
statement-3
stament -4.

trace the execution ,will any error will occur

q2)what is the maximum size of a record can be

q3)is the call in precompile is a static or dynamic?(IN precompilaton sql statemnts are replaced by call staments)

q4)maximum length an alternate index for a record can be

few more question are are there but in next posting..
Back to top
View user's profile Send private message
narasimha_devi
Warnings : 1

New User


Joined: 10 Mar 2005
Posts: 26

PostPosted: Sun May 29, 2005 10:27 am
Reply with quote

these are the answers i have

no error

80 chars

dynamic call
Back to top
View user's profile Send private message
syams

New User


Joined: 28 May 2005
Posts: 2
Location: chennai

PostPosted: Sun May 29, 2005 7:36 pm
Reply with quote

narasimha_devi wrote:
these are the answers i have

no error

80 chars

dynamic call



hi narasimha i think ur ansewrs are not so correct ,because record length can definitely more than 80 bytes ,the call may be static as it is called before compilation.
regards
syam
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon May 30, 2005 8:52 am
Reply with quote

Hi Syam,

Here?s another try:

Q1 ?perform para-d.? will cause a compiler error. para-d wasn?t defined.
?goto para b.? if not a typo, will cause a compiler error - s/b ?go to para-b.? And, of course, stmts 3&4 will never execute. Not necessarily an error, but unusual.

Q2 max rec len is 32K. The new LBI option allows very large blksizes for tape d/s. Only available for Assembler pgms.

Q3 Check the pre-compiler listing. If it shows ?CALL dataname? it?s a DYNAM call; if it shows ?CALL ?literal?? you have to check the compiler option (it could be either). Haven?t looked, but I?d guess they?re DYNAM calls.

Q4 Up to 255 bytes, but alt key len + offset can?t be GT base cluster?s data len.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Comp interview questions Mainframe Interview Questions 5
No new posts Interview Questions on Cobol DB2 program Mainframe Interview Questions 5
No new posts Mainframe Interview Questions CICS,CO... Mainframe Interview Questions 6
No new posts Viewing executing process in NDM .. q... IBM Tools 0
No new posts INCLUDE condition questions DFSORT/ICETOOL 1
Search our Forums:

Back to Top