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 |
In EBCDIC, how would the number 1234 be stored?
How to know whether the module is dynamical or statistical?
Write the code to count the sum of n natural numbers.
How to delete a front spaces in a data-name/variable in cobol Example:- 01 data-name-1 PIC x(20) value " cobol language". 01 data-name-2 PIC x(20). MOVE data-name-1 to data-name-2. would like the value of data-name-2 is "cobol language".
where do u use low-value and high value in cobol
01 WS-NAME PIC X(10) OCCURES 2. by this we can get ws-name 2 times. My qustion is how can we access the second name
What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?
COMP-3 field occupy ?
PERFORM ACCUMULATE-TOTALS VARYING A FROM 1 BY 2 UNTIL A >2 AFTER B FROM1 BY 1 UNTIL B>2 AFTER C FROM 2 BY -1 UNTIL C<2 How many times the paragraph ACCUMULATE-TOTALS would be exicuted?
What is an in line perform? When would you use it? Anything else you wish to say about it.
01 a pic x(6) value is abcdef 01 b pic x(3) move a to b wht will be the value in b ?
01 ws-p pic 9(2). 01 ws-q pic 9(2) value 01. 01 ws-r pic 9(2) value 99. p.d. compute p = q + r what will be result of p ans(00) but my question is that how i got 10 on the place of 00. (truncation will ocuure on right side not left). please tell me ?