How do you define a variable of COMP-1? COMP-2?
Answers were Sorted based on User's Feedback
Answer / pal
77 A COMP-1.
77 B COMP-2.
because we can't use PIC clause in comp-1 & comp-2
| Is This Answer Correct ? | 42 Yes | 8 No |
Answer / paddu
01 a usage comp-1.
01 b usage cpmp-2.
this way to define
| Is This Answer Correct ? | 12 Yes | 1 No |
consider the fallowing 77 stat pic 9. 88 male value 1,2,3. 88 female value 4 through7. what will be the value of stat a) set male to true. b) set female to true.
How do you define a variable of COMP-1? COMP-2?
What is the different between index and subscript?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What is the size of s9(19)comp3? explain
I have a file it contain 10 records.i got abend at 8th record because of soc7.how do you know that perticular record got abend?
What are different data types in cobol?
a. Can the OPTIONAL clause in COBOL only be coded for input files? b. If it is coded for files opened in OUTPUT, I-O or EXTEND mode, will it give a compilation error? c. If there are no compilation errors and if such files are not coded in the JCL, will the OPEN statement run fine when these files are opened? d. How will a WRITE statement work for the above files?
The below is the declaration for a variable ws 01 ws pic 9(3). if you want to insert space how will you do that. in which level u should do it
Have you used comp and comp-3 in your project? And how?
Scenario: I have 3 Input Files.Read the first i/p file and depending on certain business logic, I want to read wither i/p file-2 or i/p file-3.Now, depending on certain business logic applied to the record read from either file-2 or file-3, I decide to write them to either output file-2 or output file-2. Question: How many job steps are necessary to implement a solution for the above.
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?