Current Year Guided Learning Hours (CYGLH) 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 code and SPSS code is provided to illustrate the Current Year Guided Learning Hours data definition.
A_ACT_B
2 The following table shows the steps required to derive A_ACT_B.
Step | Condition | Action if true | Action if false |
1 | Is collection ACL | Go to 3 | Go to 2 |
2 | Does A17 = 4 | Go to 5 | Go to 3 |
3 | Is TEMPACT < 1/10/ relevant academic year and A34 = 3 | Set A_ACT_B to 0 and Go to 10 | Go to 4 |
4 | Does A34 = 2 | Set A_ACT_B = A32*(PRD_ACT/TOTPDACT) and Go to 10 | Set A_ACT_B = A32*(PRD_ACT/TOTPDEXP) and Go to 10 |
5 | Is TEMPACT < 1/10/ relevant academic year and A34 = 3 | Set A_ACT_B to 0 | Go to 6 |
6 | Does A34 = 2 | Go to 7 | Go to 8 |
7 | Is TOTPDACT > 3 | Set A_ACT_B to A32*(PRD_ACT/TOTPDACT-truncation of (TOTPDACT/3)) and Go to 10 | Set A_ACT_B = A32*(PRD_ACT/TOTPDACT) and Go to 10 |
8 | Is TOTPDEXP > 3 | Set A_ACT_B to A32*(PRD_ACT/TOTPDEXP -truncation of (TOTPDEXP /3)) and Go to 10 | Set A_ACT_B to A32*(PRD_ACT/TOTPDEXP) and Go to 10 |
9 | Does A17 = 6 | Set A_ACT_B to 0 | Go to 10 |
10 | Is A_ACT_B < 0 | Set A_ACT_B to 0 | |
3 The following SPSS code illustrates how to derive A_ACT_B
L_ACT_B
4 The following table shows the steps required to derive L_ACT_B.
Step | Condition | Action if true | Action if false |
1 | Is A_ACT_B = 0 | Set A_ACT_B to 0.01 and Go to 2 | Go to 2 |
2 | Is A_LIVE_B >1 | Set L_ACT_B = sum(A_ACT_B) | |
5 The following SPSS code illustrates how to derive L_ACT_B
A_EXP_B
6 The following table shows the steps required to derive A_EXP_B.
Step | Condition | Action if true | Action if false |
1 | Is collection ACL | Go to 3 | Go to 2 |
2 | Does A17 = 4 | Go to 5 | Go to 3 |
3 | Is TEMPACT < 1/10/ relevant academic year and A34 = 3 | Set A_EXP_B to 0 and Go to 10 | Go to 4 |
4 | Does A34 = 2 | Set A_EXP_B = A32*(PRD_EXP/TOTPDACT) and Go to 10 | Set A_EXP_B = A32*(PRD_EXP/TOTPDEXP) and Go to 10 |
5 | Is TEMPACT < 1/10/ relevant academic year and A34=3 | Set A_EXP_B to 0 | Go to 6 |
6 | Does A34 = 2 | Go to 7 | Go to 8 |
7 | Is TOTPDACT > 3 | Set A_EXP_B to A32*(PRD_EXP/TOTPDACT-truncation of (TOTPDACT/3)) and Go to 10 | Set A_EXP_B = A32*(PRD_EXP/TOTPDACT) and Go to 10 |
8 | Is TOTPDEXP > 3 | Set A_EXP_B to A32*(PRD_EXP/TOTPDEXP-truncation of (TOTPDEXP /3)) and Go to 10 | Set A_EXP_B to A32*(PRD_EXP/TOTPDEXP) and Go to 10 |
9 | Does A17 = 6 | Set A_EXP_B to 0 | Go to 10 |
10 | Is A_EXP_B < 0 | Set A_EXP_B to 0 | |
7 The following SPSS code illustrates how to derive A_EXP_B.
L_EXP_B
8 The following table shows the steps required to derive L_EXP_B.
Step | Condition | Action if true | Action if false |
1 | Is A_EXP_B = 0 | Set A_EXP_B to 0.01 and Go to 2 | Go to 2 |
2 | Is A_LIVE_B >1 | Set L_EXP_B = sum(A_EXP_B) | |
9 The following SPSS code illustrates how to derive L_EXP_B.
Last Modified: 27 Jan 06