Page 1 of 1

FIND NUMBER in adabas.

Posted: Mon Jul 13, 2015 2:11 pm
by Ancilin N
Hi,

I m learning ADABAS. I would like to know what value is returned with:

Code: Select all

FIND NUMBER MARKS-FILE WITH SUPER-NUM = 'ABCD20000' 
Will this return the number of records having the value of SUPER as 'ABCD20000'? And how the value in the NUMBER can be used?

Re: FIND NUMBER in adabas.

Posted: Wed Jul 15, 2015 9:18 am
by Anuj Dhawan
I do not speak ADABAS, however, from a search - "FIND NUMBER will give you how many records are there in the file which have SUPER-NUM = 'ABCD20000' and the result is stored in system variable *NUMBER. It can be used to check whether a particular record exist or not. For example, if no records are there then *NUMBER will be 0 and you can decide on further flow of the program."