How can we find out wether to declare the data items like
Integer, Char,Comp? If comp types how can we decide wether
it is Comp and Comp3.How it is?
Please Explain... Cheers.
Answer / shinoy sansilavose
if your variable always represents a value which is needed
for some mathematical calculations then you can define that
var as either a numeric one or as an alphanumeric one.
if your variable is specif for any city name or address you
can declare it as alphabetic or alphanumeric(alphanumeric
is suggested since address contain pin codes/door number)
| Is This Answer Correct ? | 1 Yes | 1 No |
how can we code index in an array of cobol pgm?
Can we move SPACES to numeric field and ZEROES to alphabetic field? If yes what are the way doing this?
What is the mode in which you will OPEN a file for writing?
If A>B next sentence end-if display 1 display 2. display 3. If a>b, it will display only 3.(the next sentence, ie., after fullstop/period) ____________________________________ if a>b continue end-if display 1 display 2. display 3. If a>b, it Will display 1 2 3 (the next statement) ____________________________________ if a>b continue display 1 end-if display 2 display 3. display 4. If a>b, Will it display 2 3 4 (or) 1 2 3 4 ?
Sending data is aplhabetic size 7 (value 3000), I wantated this value to be stored in database, which is defined as s9(7)v9(2)comp-3.
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length
What kind of error is trapped by on size error option?
What is the Purpose of Pointer in the string?
what is meaning by design document? who can repared for this?
Should I use STOP RUN in the sub program??why?
01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length