I have one sample program where i am using find and read.
eg: FIND EMP-VIEW WITH CITY = PARIS
where EMP-NAME = ‘MARK’
DISPLAY *COUNTER
DISPLAY *NUMBER
( Assume that there are 10 records with city = paris and 5recods with name =mark)
So what will be the output?
3. In the above question if i use READ instead of FIND, what will be the output?
Meaningless question since there will not be a value for *NUMBER. You will get a NAT0285 compile error. Also, there is not direct counterpart (in terms of Adabas activity) to a WITH clause in a FIND for a READ statement. In other words, there is no ISN list. Closest would be READ emp-view by city starting from ‘paris’ to ‘paris’ where emp-name = ‘mark’
Demand an Adabas and a Natural class from your employer.