anand


{ City }
< Country > india
* Profession *
User No # 37764
Total Questions Posted # 0
Total Answers Posted # 3

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 1
Users Marked my Answers as Wrong # 3
Questions / { anand }
Questions Answers Category Views Company eMail




Answers / { anand }

Question { IBM, 35321 }

What is the benefit of using Externally Described files
over Internally
Described?


Answer

Externally described files are defined in outside of the pgm
which has specific structure(fields and attributes). So that
you can use in multi program.

Internally described files are defined in inside of the
program or flatfile(fully proc)-without structure.

Is This Answer Correct ?    1 Yes 0 No

Question { 6455 }

What would be the output of the variable result?

D RESULT S 5S O INZ(00011)
C EVAL RESULT = %TRIM(RESULT)

Please give me the correct answer for this
A.0001
b.compile time error
c.11
d.Runtime error


Answer

Answer is "b" - %Trim are used blanks at edges for the string.
And also you have to define 0(*zero) instead of 'O' as you
defined in D spec for zoned decimal.

Is This Answer Correct ?    0 Yes 0 No


Question { 18660 }

Job is in MSGW while reading the input file and writing a
new record / updating a reacod due to Duplicate data error.

What action would you take ( C D I R )...?


Answer

Some time you cant able to delete a duplicate record cause
this MSGW may lock that file so in this case you can give I
- ignore, so that record wont get lock,in the mean time imly
try to delete the duplicate records in second session. And
than now give Retrive - 'R'

Is This Answer Correct ?    0 Yes 3 No