basic.id.expression Definition/BASIC Program

basic.id.expression

Command basic.id.expression Definition/BASIC Program
Applicable release versions: AP, R83
Category BASIC Program (486)
Description is a string expression which evaluates to an item-id, for use in all types of "read" and "write" statements.
Syntax
Options
Example
read invoice.item from invoice.file,"12345" else...

In this example, the id.expression is "12345".

input id
read record from file,id else...

In this example, the value entered into the variable "id" is used as 
the id.expression.

read lastid from ctlfile,'lastid' then
 write item on datafile,lastid+1
 write lastid+1 on ctlfile,'lastid'
end

Both the literal string 'lastid' and the arithmetic expression 
"lastid+1" are id.expressions.
Purpose
Related basic.release
basic.writevu
basic.write
basic.delete.statement
basic.writev
basic.matread
basic.matwrite
basic.readv
basic.read