What are the different data types available in COBOL?
Answers were Sorted based on User's Feedback
Answer / vampire
numeric -9
numeric edit---+,-,cr,db,$,b,z,*,v
non numberic----a,x,g
exclusive sets -----+,-,cr,db,$,b,z,*,v
| Is This Answer Correct ? | 6 Yes | 1 No |
how to convert the recors form vsam file to db2 table tru file aid
where will u code file status ?
What is the difference between working storage copybook and linkage section copybook?
I've one string with spaces ( I N D I A ). My question is I want remove the spaces & combine in to single string without space (INDIA).How we can write the cobol program & wich options we need to use. Please let me know.
1) can we display the index?
i want to enter the name 'pandu' into ur table how?
Hi Guys, I have faced one interview question if I have requirement to add 5 new columns to existing table what are prerequisite do i need to take.
how many subpgms we can use in a main pgm ? how do u link sub pgm to main pgm ? how can i use the parameters declared in main pgm to sub pgm ?
what is the difference between perform varying and perform until
WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?
What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'. 01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'. What will happen I want Display WS-VARX and WS-VARN?
How to delete leading spaces/blank in COBOL ? Example:- 01 data-name-1 pic x(220) " English is a language". I would like to delete leading spaces.