|
ISO 7816
[part 1] [part 2]
[part 3] [part4] [section..1
2
3 4
5
6
7 8
9 annex.. A
B C
D E
F]
Annex C: Record Pointer Management
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 |
| Command READ RECORDS |
Record in response |
Position of CP after command |
| Next (id=aa) |
Next with id=aa
If no next, 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 |
First record |
| Last (id=00) |
Last |
Last 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 |
|