ISO7816-4 Annex C: Record Pointer Management

ISO 7816 Part 4: Interindustry Commands for Interchange

ISO 7816 part 4, section..1 2 3 4 5 6 7 8 9 annex.. A B C D E F

For the latest version of ISO7816 part 4, please contact ISO in Switzerland.

ISO7816-4 Annex C: Record Pointer Management

Annex C.1 Case 1
Annex C.2 Case 2

Annex C.1 Case 1

Case 1 deals with the first command issued after a select function (either explicit or implicit). The current record pointer (CP) is undefined.

Command READ RECORDS Record in response Position of CP after command
Next (id=aa) First with id=aa
If not found, then error
Record read
Undefined
Previous (id=bb) Last with id=bb
If not found, then error
Record read
Undefined
First (id=cc) First with id=cc
If not found, then error
Record read
Undefined
Last (id=dd) Last with id=dd
If not found, then error
Record read
Undefined
Next (id=00) First Record read
Previous(id=00) Last Record read
First(id=00) First Record read
Last(id=00) Last Record read
Record #00 Error Undefined
Record #EE #EE
If not found, then error
Undefined
P1=’00’, P2=’xxxx x101′ Error Undefined
P1=’00’, P2=’xxxx x110′ Error Undefined
#jj, P2=’xxxx x101′ #jj to last
If #jj not found, then error
Undefined
#kk, P2=’xxxx x110′ Last to #kk
If #kk not found, then error
Undefined


Annex C.2 Case 2

Command READ RECORDS Record in response Position of CP after command
Next (id=aa) Next with id=aa
If not found, then error
Record read
Unchanged
Previous (id=bb) Previous with id=bb
If not found, then error
Record read
Unchanged
First (id=cc) First with id=cc
If not found, then error
Record read
Unchanged
Last (id=dd) Last with id=dd
If not found, then error
Record read
Unchanged
Next (id=00) CP+1
If CP=last, then error
Previous CP+1
Unchanged
Previous(id=00) CP-1
If CP=first, then error
Previous CP-1
Unachanged
First(id=00) First Record record
Last(id=00) Last Record record
Record #00 CP Unchanged
Record #EE #EE
If not found, then error
Unchanged
P1=’00’, P2=’xxxx x101′ CP to last Unchanged
P1=’00’, P2=’xxxx x110′ Last to CP Unchanged
#jj, P2=’xxxx x101′ #jj to last
If #jj not found, then error
Unchanged
#kk, P2=’xxxx x110′ Last to #kk
If #kk not found, then error
Unchanged