Can JUSTIFIED be used for all the data types?
Answers were Sorted based on User's Feedback
Answer / guest
no it can be used only for alphabetic and alpha numeric
| Is This Answer Correct ? | 20 Yes | 0 No |
Answer / vampire
No,in numeric data types numeric wont be applicable
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / bella
JUSTIFIED Clause cannot be used for numeric and numeric-
edited items
| Is This Answer Correct ? | 1 Yes | 0 No |
wht happens if we dnt give scope terminator ?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
whats the difference between search and search all?
How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning.
What will happen if we generate GDG (+2) version without generating (+1) version?
sample code for read a 2nd record from last in flatfile how can do?
What is the output generated by the following code? 01 GRP-I. 05 SUBFLD1 PIC XX VALUE "AB". 05 FILTER PIC X(6) VALUE SPACES. 01 GRP-2 REDEFINED GRP-1. 05 SUB-FLD2 PIC XX. 05 SUB-FLD3 PIC XX. 05 FILTER PIC X(4). IF SUB-FLD1 NOT = SPACES DISPLAY "SUBFLD1" MOVE "ABBCCD" TO GRP-1 IF SUB-FLD3 = SPACES DISPLAY "SPACES" ELSE DISPLAY "SUBFLD3" DISPLAY "END" ELSE DISPLAY "SPACES" DISPLAY "END". (a) SUBFLD1 SUBFLD3 END (b) SPACES END (c) SUBFLD1 END (d) SUBFLD1 SPACES
What are the ways you can generate a copybook?
In a COBOL program, 2 tables TABLE1 and TABLE2 are defined that are indexed by INDEX1 and INDEX2 respectively. Can we use INDEX1 with TABLE2 and INDEX2 with TABLE1?
consider the following FD FILE-1 01 REC-1 PIC X(80) ...... WORKING-STORAGE SECTION 01 W-REC PIC X(90) ........ PROCEDURE DIVISION FIRST-PARA ....... READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG which of the following is true with respect to the above? a.REC-1 will contain nothing and W-REC will contain the contains of the record read b.REC-1 and W-REC contain the same data c.syntex is invalid and error will occur d.REC-1 and W-REC must be of same size
What is the maximum size of a 01 level item in COBOL I? in COBOL II?
What is a SSRANGE and NOSSRANGE?