Framework and NVQ Status Sample Code

Note: This page is from an older version of the Data Dictionary and may therefore contain information that is now out of date. It is included here for reference only.


1 The following pseudo and SPSS code is provided to illustrate the Framework and NVQ Status data definition.

A_STATUS

2 The following tables show the steps required to derive A_STATUS For Apprenticeships

Variables used in the derivation of A_STATUS for the Framework Record

A_NVQACH

Step

Condition

Action if true

Action if false

1

Does A10=40

Go to 2

Go to 9

2

Does A40 have a value or A35=1

Set A_NVQACH to 1

Set A_NVQACH to 0

3

The Framework A_NVQCH is the maximum value of A_NVQACH in all of the aims making up the Framework has

Framework A31

Step

Condition

Action if true

1

More than one Framework

Earlier Frameworks:

Set Framework A31 to

Max value of all aims that make up the Framework

2

Does A43 have a value

Set Framework A31 to Max value of all aims that make up the Framework

3

Does L39 <>93,94 or 95

Set Framework A31 to Max value of all aims that make up the Framework

TRAN_DATE

Step

Condition

Action if true

Action if false

1

Does A50=2 or 7 and A34<>2

Set TRAN_DATE=A31

Go to 2

2

Does A34=4 or 6

Set TRAN_DATE=A31

3

Framework TRAN_DATE=Maximum value of the TRAN_DATE for all aims that make up the Framework

A_TRANSFER

Step

Condition

Action if true

Action if false

1

Is A15=2,3 or 10

Go To 2

Set A_TRANSFER to Missing Value

2

Does A10 =40

Go To 3

Set A_TRANSFER to Missing Value

3

Is A31 missing

Set A_TRANSFER to 0

Go to 4

4

Does A34 not equal 1, 4, 5 or 6 and A50 not equal 1, 2, 6 or 7

Set A_TRANSFER to –2 Go to 9

Go to 5

5

Does A50=2

Set A_TRANSFER to -4 Go to 9

Go to 6

6

Does A50=7

Set A_TRANSFER to -5 Go to 9

Go to 7

7

Does A34=6

Set A_TRANSFER to -6 Go to 9

Go to 8

8

Does A34=4 or 5

Set A_TRANSFER to -3 Go to 9

Go to 9

9

Does A40 have a value

Set A_TRANSFER to 1

Go to 10

10

Does A35=1

Set A_TRANSFER to 1

11

The Framework A_TRANSFER is the value for the aim with the latest end date where A10=40


A_STATUS

Step

Condition

Action if true

Action if false

1

Does A15=4,5,6 or 7

Got to 2

Go to 9

2

Does A_ACHIEVE=-6

Set A_Status to 11

Go to 3

3

Does A_ACHIEVE=-5

Set A_Status to 10

Go to 4

4

Does A_ACHIEVE=-4

Set A_Status to 9

Go to 5

5

Does A_ACHIEVE=-3

Set A_Status to 8

Go to 6

6

Does A_ACHIEVE=-2

Set A_Status to 6

Go to 7

7

Does A_ACHIEVE=0

Set A_Status to 0

Go to 8

8

Does A_ACHIEVE=1

Set A_Status to 4

9

Does A15=2, 3 or 50

Go to 10

10

Does the Framework A31 have a value

Go to 11

Set A_STATUS to 0

11

Does the Framework A31 and the Framework A43 not have values and the Framework A_NVQACH has a value

Set A_STATUS to 5

Go to 12

12

Does the Framework A31 have a value and the Framework A43 not have a value and the Framework A_NVQACH =1

Set A_STATUS to 4

Go to 13

13

Does the Framework A31 have a value and the Framework A43 not have a value and the Framework A_NVQACH =0

Set A_STATUS to 6

Go to 14

14

If L39=93 and the Framework A31 not have a value

Set A_STATUS to 2

Go to 15

15

If L39=94 and the Framework A31 not have a value

Set A_STATUS to 3

Go to 16

16

Does the Framework A_STATUS=6 and the Framework A31=the Framework TRAN_DATE

Set A_STATUS to 7

Go to 22

17

Does the Framework A_TRANSFER=-6

Set A_STATUS to 11

Go to 18

18

Does the Framework A_TRANSFER=-5

Set A_STATUS to 10

Go to 19

19

Does the Framework A_TRANSFER=-4

Set A_STATUS to 9

Go to 20

20

Does the Framework A_TRANSFER=-3

Set A_STATUS to 8

Go to 21

21

Does the Framework A_TRANSFER=-6 and the Framework A_NVQACH=1

Set A_STATUS to 12

Go to 22

22

Does the Framework A43 have a value

Set A_STATUS to 1

3 The following tables show the steps required to map A_ACHIEVE to A_STATUS for NVQs

A_ACHIEVE

A_STATUS

-6

'Learner is taking a planned break from learning'

11

Learner is taking a planned break from learning

-5

'Transfer to a new provider caused by LSC intervention'

10

Transfer to a new provider forced by LSC intervention

-4

'Transfer to a new provider'

9

Transfer to a new provider

-3

'Transfer to a new programme at the same provider'

8

Transfer to a new programme at the same provider

-2

'No Achievement / Withdrawn'

6

No achievement

0

'Continuing'

0

Continuing

1

'NVQ Achieved'.

4

NVQ achieved

Value

Label

0

Continuing

1

Framework achieved

2

Continuing framework awaiting aim start

3

Framework complete awaiting confirmation of achievements

4

NVQ achieved

5

NVQ achieved, continuing framework

6

No achievement

7

Transfer

8

Transfer to a new programme at the same provider

9

Transfer to a new provider

10

Transfer to a new provider forced by LSC intervention

11

Learner is taking a planned break from learning

12

NVQ achieved but learner is now taking a planned break from learning on the framework

4 The following table shows the steps required to derive A_STATUS

GET FILE ‘…..FRAMEWORK AND AIMS data set’.

/* Create a variable NVQACH that has a value of 1 if the NVQ aim has been achieved.
COMPUTE NVQACH=0.
IF (A10=40 AND (A40>0 OR A35=1)) NVQACH=1.
SORT CASES L01 L03 A15 A26.

/*Select all the component aims of the framework, and not the framework record, and for each framework create a variable A_NVQACH which takes the max value in NVQACH.
TEMPORARY.
SELECT IF ANY(A15,2,3,10) AND A10 <> 50.
AGGREGATE OUTFILE=’………………NVQACH.SAV’*
 /PRESORTED
 /BREAK= L01 L03 A15 A26
 /A_NVQACH = MAX(NVQACH).

/* Match the value in A_NVQACH back on to the file.
MATCH FILE /FILE=*
 /TABLE=’…………………NVQACH.SAV’*
 /BY L01 L03 A15 A26.

/* Create a variable A_STATUS.
COMPUTE A_STATUS=0.

/* Calculates the status of the framework, A_STATUS, following some logical rules. These calculations are
/* only carried out on framework records and in a specific order, so that all conditions are covered.
DO IF A10=50.

/*If the framework doesn't have a leave date, then set status to continuing.
 IF SYSMIS(A31) A_STATUS=0.

/* If the framework doesn't have a leave date, but they have achieved an NVQ, then set status to
/* NVQ achieved, continuing.
 IF SYSMIS(A31) AND SYSMIS(A43) AND A_NVQACH > 0 A_STATUS=5.

/* If the framework has a leave date, no framework achievement date, but has achieved the
/* NVQ, then set status to NVQ Achieved.
 IF A31>0 AND SYSMIS(A43) AND A_NVQACH > 0 A_STATUS=4.

/* If the framework has a leave date, no framework achievement date, and not achieved the
/* NVQ, then set status to No Achievement.

 IF A31>0 AND SYSMIS(A43) AND A_NVQACH=0 A_STATUS=6.

/* If the learner destination is set to continuing/ awaiting, and there is no framework leave date,
/* then set status to continuing/ awaiting accordingly.
 IF(L39=93) AND SYSMIS(A31) A_STATUS=2.
 IF(L39=94) AND SYSMIS(A31) A_STATUS=3.

/* Set framework to transfer.
 IF (A_STATUS = 6 AND TRAN_DATE = A31) A_STATUS = 7.

/* If the framework has an achievement date, then set status to Framework Achieved.
 IF(NOT(SYSMIS(A43))) A_STATUS=1.

/* Next look at the status of NVQs.
ELSE IF ANY(A15,4,5,6,7) and NOT ANY(A10,41,42).
 IF A_ACHIEVE=-6 A_STATUS=11
 IF A_ACHIEVE=-6 AND A_NVQACH>0 A_STATUS=12
 IF A_ACHIEVE=-5 A_STATUS=10
 IF A_ACHIEVE=-4 A_STATUS=9
 IF A_ACHIEVE=-3 A_STATUS=8
 IF A_ACHIEVE=-2 A_STATUS=6
 IF A_ACHIEVE=0 A_STATUS=0
 IF A_ACHIEVE=1 A_STATUS=4
END IF.

VARIABLE LABELS A_STATUS 'Status of Framework'.
VALUE LABELS A_STATUS 0 ‘Continuing’
 1 ‘Framework achieved’
 2 ‘Continuing framework awaiting aim start’
 3 ‘Framework complete awaiting  onfirmation of achievements’
 4 ‘NVQ achieved’
 5 ‘NVQ achieved, continuing framework’
 6 ‘No achievement’
 7 ‘Transfer’
 8 ‘Transfer to a new programme at the same provider’
 9 ‘Transfer to a new provider’
 10 ‘Transfer to a new provider forced by LSC intervention’
 11 ‘Learner is taking a planned break from learning’
 12 ‘NVQ achieved but learner is now taking a planned break from learning on the  ramework’.

Creator

Analysis and MI Team

Date issued

26 September 2006

Date created

22 December 2005

Document ref.

\\records.lsc.local\NAT\23 LrngSkillsPolicyInfrastr\23-07 DataCollectAlysis\23-07-03 LrnrDataAlysisDiss\nat-frameworkandnvqstatussamplecode-report-26sep2006.doc

LSC office

Learning and Skills Council
Cheylesmore House Quinton Road Coventry CV1 2WT
T 0845 019 4170 F 024 7682 3675 www.lsc.gov.uk/

Last Modified: 26 Sep 06