View previous topic :: View next topic
|
Author |
Message |
syams
New User
Joined: 28 May 2005 Posts: 2 Location: chennai
|
|
|
|
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 |
|
|
narasimha_devi Warnings : 1 New User
Joined: 10 Mar 2005 Posts: 26
|
|
|
|
these are the answers i have
no error
80 chars
dynamic call |
|
Back to top |
|
|
syams
New User
Joined: 28 May 2005 Posts: 2 Location: chennai
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
|