What will happen if we move SPACES to numeric field and
ZEROES to alphabetic field?
Answers were Sorted based on User's Feedback
Answer / varun v
1) Move Spaces to Numeric field:
Here program would give compilation error saying Spaces
to Numeric integer did not follow the "MOVE" statement
compatibility rules.
2) Move Zeroes to Alphabetic field:
Would work fine with Movement of Zeroes to the
Alphabetic field.
Is This Answer Correct ? | 4 Yes | 5 No |
01 a pic s9(5) value -12345, if we disply a , the sign will overpunched with last digit but i need to get the miuns sign in the result?
What is the difference between comp and comp-3?
Program A calls program B. Will the working storage variables declared in program B be initialized every time it is called by program A or will the values be retained until the end of program A?
Syntax for JCLLIB & JOBLIB???
Name the divisions in a COBOL program ?
consider the following progrm statements MOVE 0 TO SW.NO.OF.REC PERFORM PRI-OUT UNTIL SW=1 DISPALY NO.OF.REC STOP RUN PRE-OUT READ IN-FILE AT END MOVE 1 TO SW WRITE OUO-REC FROM IN-REC ADD 1 TO NO.OF REC if the IN-FILE contains 1000 records what value will be displayedafter the PERFORM is over?assume that N0.OF.REC has PIC 9(4) a.1000 b.1001 c.1 d.none of the above since there is a syntex error
What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?
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?
what is sync clause?
How to read the last 100 records from a COBOL file. The file contains N number of records.
88 class is used for
Can a REDEFINES clause be used along with an OCCURS clause? if yes, 01 WS-TABLE. 03 WS-TABLE-EL OCCURS 5 TIMES PIC X(1) VALUE 'A'. 03 WS-EX REDEFINES WS-TABLE-EL PIC X(5). What can you expect? if no,why?