Riverside Community College District Information Services Supporting Coding for the Order of Registration Computed column – used in extracts to determine cumulative units. Calculates all units up to 100 units. Once 100 units have been achieved, it removes basic skills units in its calculation. R17.CUM.UNITS.PRIOR.REG Demand Columns: PST.STUDENT.ACAD.CRED Demand Processes: X.S.CALC.COMP.UNITS Coding: string xResult1; xResult1 = XSCalcCompUnits((vlPstStudentAcadCred).ToDelimitedString((253).Char()) ); return (money)xResult1; Subroutine used in computed column: X.S.CALC.COMP.UNITS Data Elements: STUDENT.ACAD.CRED.ID STC.COURSE COURSES.ID CRS.COURSE.TYPES STC.CMPL.CRED STC.STATUS STC.COURSE.NAME STC.REPL.CODE CRS.REG.RETAKE.POLICY CRS.NAME Code: XL.STU.ACAD.CRED = AL.STU.ACAD.CRED * 2/16/2011 MBS SCR 28754 END IF (XL.STU.ACAD.CRED EQ "") THEN A.UNITS = 0 END ELSE X.COMP.UNITS1 = 0; * accumulates units X.COMP.UNITS2 = 0; * accumulates units w/o basic skill LOOP * REMOVE V.STUDENT.ACAD.CRED.ID FROM AL.STU.ACAD.CRED SETTING X.STILL.MORE REMOVE V.STUDENT.ACAD.CRED.ID FROM XL.STU.ACAD.CRED SETTING X.STILL.MORE IF ( V.STUDENT.ACAD.CRED.ID NE "" ) THEN FOR_THE REFERENCED STUDENT.ACAD.CRED.ID DEFER_COMMIT Y.FLAG = 0 V.COURSES.ID = V.STC.COURSE FOR_THIS COURSES.ID END_THIS COURSES.ID * DISPLAY 'V.STUDENT.ACAD.CRED.ID':V.STUDENT.ACAD.CRED.ID * DISPLAY 'V.STC.COURSES':V.CRS.NAME * DISPLAY 'V.STC.CMPL.CRED':V.STC.CMPL.CRED IF V.CRS.REG.RETAKE.POLICY = 0 THEN IF V.STC.REPL.CODE = 'R' OR V.STC.REPL.CODE = 'M' OR V.STC.REPL.CODE = 'A' THEN Y.FLAG = 1 END END IF Y.FLAG = 1 THEN END ELSE Y.CNT = DCOUNT(VL.STC.STATUS,@VM) FOR XXX = 1 TO Y.CNT IF VL.STC.STATUS<1,XXX> = 'TR' OR VL.STC.STATUS<1,XXX> = 'AE' THEN Y.FLAG = 1 END NEXT XXX END * DISPLAY 'Y.FLAG':Y.FLAG IF Y.FLAG = 1 THEN END ELSE V.COURSES.ID = V.STC.COURSE X.FLAG = 0 FOR_THIS COURSES.ID END_THIS COURSES.ID SHOWA " CRS.TYPE = ":VL.CRS.COURSE.TYPES X.CNT = DCOUNT(VL.CRS.COURSE.TYPES,@VM) FOR XX = 1 TO X.CNT IF VL.CRS.COURSE.TYPES<1,XX> = 'B' THEN X.FLAG = 1 END NEXT XX X.COMP.UNITS1 += V.STC.CMPL.CRED X.COMP.UNITS2 += V.STC.CMPL.CRED SHOWA " FLAG = ":X.FLAG IF X.FLAG = 1 THEN X.COMP.UNITS2 = X.COMP.UNITS2 - V.STC.CMPL.CRED END END END_THE STUDENT.ACAD.CRED.ID END UNTIL NOT( X.STILL.MORE ) REPEAT IF X.COMP.UNITS1 /100000 > 99.5 THEN A.UNITS = X.COMP.UNITS2 END ELSE A.UNITS = X.COMP.UNITS1 END END New File – X.REG.ORDER @ID............ TYP LOC.......... CONV NAME........... FORMAT SM ASSOC..... @ID D 0 Student ID 10L S XRO.ACAD.STANDI D 6 Dismissal 3L S NG XRO.AOC.FLAG D 3 AOC Flag 1L S XRO.APPL.DATE D 9 D2/ Appl Date 8R S XRO.APPL.TIME D 10 MTH Appl Time 8R S XRO.BASIC.UNITS D 2 MD2 Cum Units w/o B 8R S asic XRO.CUM.UNITS D 1 MD2 Cum Units 8R S XRO.ENROLL.STAT D 4 Enroll Status 1L S US XRO.GROUP D 7 Group 2R S XRO.LAST.TERM D 5 Last Term 2R S XRO.NET.UNITS D 11 MD15 Net Units 8R S XRO.REG.DATE D 12 D2/ Reg Date 8R S XRO.REG.TIME D 13 MTH: Reg Time 8R S XRO.SUBGROUP D 8 SubGroup 2R S XRO.APPL.DATE.T I SUBR('S.MIO.T D2/ Appl Date 8R S EMP RANS','APPLIC ANTS',@ID,'R1 7.CURRENT.APP L.DATE','X') XRO.APPL.TIME.T I SUBR('S.MIO.T MTH Appl Time 8R S EMP RANS','APPLIC ANTS',@ID,'R1 7.APP.CURRENT .STATUS.TIME' ,'X') XRO.GROUP.SUBGR I XRO.GROUP:'.' Category 3R S OUP :XRO.SUBGROUP XRO.MOVE.DATA I TRANS(X.MOVE. MD2 MOVE DATA 8R DATA,@ID,XMD. 1,'X') XRO.NET.UNITS.T I TRANS(STUDENT MD2 Net Units 8R S EMP S,@ID,STU.USE XRO.REG.DATE.TE I SUBR('S.MIO.T D2/ Reg Date 8R S MP RANS','STUDEN TS',@ID,'R17. STU.CURRENT.P RIORITY.DATE' ,'X') XRO.REG.TIME.TE I TRANS('STUDEN MTH Reg Time 8R S MP TS',@ID,'STU. USER42','X') 21 records listed S