Question { Atos Origin, 11120 }
How 10 Digits are stored in Packed Decimal?
Answer
Is This Answer Correct ? | 0 Yes | 0 No |
which of the following can be used as a check protection symbol
a.Z
b.S
c.*
d.+
Answer
Is This Answer Correct ? | 0 Yes | 0 No |
study the following code
01 A1
05 B PIC 99
05 C PIC X(4)
01 A2
05 B PIC 99V99
05 C PIC A(4)
pick out the valid statement from the following
a.A1 and A2 can not have sub-ordinates
b.A1 and A2 can have the same sub-ordinates but must have
same PIC clause
c.there is nothing wrong
d.A1 and A2 can have same sub-ordinates provided they are
not at 01 level
Answer
Is This Answer Correct ? | 0 Yes | 0 No |
study the following
01 A PIC 99V0 VALUE 5
01 B PIC 9V9 VALUE 6
01 C PIC 99V9 VALUE 2.5
01 D PIC 99 VALUE 3
COMPUTE A ROUNDED B C = A+B*C/D
ON SIZE ERROR PERFORM PRINT-ERROR
the comments of A.B.C after execution of the above
statement are
a.A=10 B=0 C=10
b.A=10 B=9.9 C=9.9
c.A=10 B=0 C=9.9
d.A=10 B=6 C=10
Answer
Is This Answer Correct ? | 0 Yes | 0 No |
consider the following two IF statements:
IF X AND NOT Y MOVE A TO B
IF Z=1 OR 9 MOVE A TO B
select one of the following data divusion entries which
gives identical
results for both the above IF statements
a.01 Z PIC 9
88 X VALUE 1.9
88 Y VALUE 0.2 THRU 8
b.01 Z PIC 9
88 X VALUE 0.2 THRU 8
Y VALUE 1.9
c.01 Z PIC 9
88 X VALUE 1.9
88 NOT-Y VALUE 0.2 THRU 1.9
d.none of yhe above
Answer
Is This Answer Correct ? | 0 Yes | 0 No |
How to read records from flat file in reverse order through
COBOL program?
Answer
Is This Answer Correct ? | 1 Yes | 0 No |
How to read records from flat file in reverse order through
COBOL program?
Answer
Is This Answer Correct ? | 4 Yes | 0 No |
How to read records from flat file in reverse order through
COBOL program?
Answer
Is This Answer Correct ? | 0 Yes | 0 No |
How to define variable 9(20) in COBOL, because compiler
does not allow us to declare variables with Pic 9(18). Can
anyone please let me know the answer... I know one answer
to this question which is to use Compiler option Arith
(Extend) during Compilation. It extends the maximum limit
to 9(32)..Just wanted to know if there is any other way to
extend this?
Answer
Is This Answer Correct ? | 0 Yes | 0 No |
Consider the below example
call a-test1.
--
--
--
a-test1.
if a=b
perform a-test through a-exit
next sentence
else
if b=c
perform c-test through c-exit.
if a=d
perform d-test through d-exit.
a-test.
--
--
a-exit.
exit.
can u tell me what will happen if a=b
after looping into a-exit will the control go back to a-
test1.
will the condition a=d be checked???
Answer
Is This Answer Correct ? | 0 Yes | 0 No |
01 A pic 9(100) find record length of it
Answer
Is This Answer Correct ? | 2 Yes | 1 No |
ID DIVISION.
PROGRAM-ID. PLO.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 VAR1 PIC 9(2).
01 VAR2 PIC X(2).
PROCEDURE DIVISION.
ACCEPT VAR2.
MOVE VAR2 TO VAR1.
STOP RUN.
if i give 'PI' in var2 then what will b output of progr.
any abend?????
Answer
Is This Answer Correct ? | 0 Yes | 0 No |
have in 100 records in a flat file i want to move records
like 1,3,5,7,9,11,.. to Output file1 and
2,4,6,8,10,12,14 .. records moved to Output file2..Pls
Provide real time answer..
Answer
Is This Answer Correct ? | 0 Yes | 1 No |
Question { 1553 }
How to read records in reverse order in flat file?
Answer
Is This Answer Correct ? | 0 Yes | 0 No |