09.08.2015 Views

C.I.E – Carta di Identità Elettronica Functional Specification Version 2.0

CIE - Functional Specification v 2.0

CIE - Functional Specification v 2.0

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

12.8 UPDATE RECORDCLA INS P1 P2 P3 Data Field0XDCRecord Number orRecord IdentifierRecord AccessMethodLC=Number ofbytes to writeRecord DataTable 41: UPDATE RECORD commandThis command replaces the content of a record in the current EF with the string bytes contained inthe Data Field.If the current EF has not a record structure, an error will occur.Selection by SFI is not required. Therefore the 5 most significant bits of P2 MUST be forced to 0by the terminal.The parameter bytes P1 and P2 tell the way to access the record.In the UPDATE RECORD command, the only way to access a record is by its logical position: P1then contains a record number, or 00h to in<strong>di</strong>cate the current record.Access by record position (P1=00 or P2 =04)This type of access is possible for all kind of record EF.P2=04: update current/absolute• P1=0 : update the current record;• P1=n : update the record number n;n has to be <strong>di</strong>fferent from FFh.P1=00:• P2=00: update the record number 1; set the record pointer to 1• P2=01: update last: update the record with the highest record number; set the record pointerto the highest record number;• P2=02: update next: update the record whose record number is one more than the currentone; set the record pointer to the updated record;• P2=03: update previous: update the record whose record number is one less than the currentone; set the record pointer to the updated record;The use of this command on cyclic files with P2 <strong>di</strong>fferent from 03 is deprecated for backwardcompatibility.If the current record is not defined (EF just selected), then there is equivalence between the modes:CIE - <strong>Functional</strong> <strong>Specification</strong> v <strong>2.0</strong> -Page 58/76

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!