I am sending values a and b with pic x(10) and pic x(10) by
using call statement.
In linkage section, I am receiving values with pic x(10)
and pic x(11).
Will my program fail? will it be compile error or run time
abend?
Answers were Sorted based on User's Feedback
Answer / vs kumar
NOTHING WILL HAPPEN. PROGRAM WILL EXECUTE SUCCESSFULLY.
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / meera
Program will execute successfully. But truncation will
occur. If the data is numeric then MSB will truncate. If the
data type is Alphabet then Right most alphabet get truncated
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / bharath
No error will occur. Data will terminate to 10 Fields.
| Is This Answer Correct ? | 2 Yes | 3 No |
consider the following two statements MOVE 10 TO N PERFORM PARA-X N TIMES STOP RUN PARA-X MOVE 5 TO N how many times PARA-X willbe exicuted? a.10 b.5 c.infinate d.execution error
COMPUTE X = A * B - C * D and COMPUTE X = (A * B) - (C * D) (a) Are not the same (b) Are same (c) Syntactically wrong (d) Will yield a run time error
What does EXIT do ?
The order of precedence of arithmetic operators in an expression can be overridden with the use of (a) [] (b) () (c) {} (d) Any of the above
01 x pic s9(8) comp. How will the following value be internally allocated '18787'
In a program, variables are used but no DB2 involved in it. Can you call it as host variables??
How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning.
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
0 Answers TryTechnicals Pvt Ltd,
Can we move SPACES to numeric field and ZEROES to alphabetic field? If yes what are the way doing this?
1) can we display the index?
what are the limitations of Inline Perform?
how to create temporary data set in jcl? what is the use?
3 Answers Cap Gemini, Temenos,