Import e-asTTle Download File {SREGMS-10} 


This program may be used to download data from the e-asTTle System.


 
User Selection Prompt Text
* an item between square brackets [ ] is the default answer
Type
&
Length
Comments
Inport File Name A20   
2 Trail or Update Mode A1 T for Trail and U for Update
 

Sort Order Per Comments
  No Sort
 


System Select  
Assumptions 1.  The line where the headings are will start with TestID
2.  If there is no value for the results it will be populated with '-', because as soon as an empty result field is returned the program will stop reading columns.
3.  The line that starts with Averages are not processed.
4.  All result headings are substringed and the last 6 characters are cut off, this is an assumption that the headings will end with either ' Score' or ' Level'.
5.  When the inserts fail, or anything in the procedure fail, then nothing will be written to the tables.  Only if all records are successfull will it be commited to the tables.
6.  Dates will be in the following format: DD/MM/YYYY.
7.  Where the results start, column1, the columns will be grouped together two by two, eg, 1&2, 3&4, 5&6, 7&8 etc.  The assumption is that 'xxxx Score'  and 'xxxx Level' will be together.
Validations Student has to exist on {SREGB-1}, if student doesn't exist give error "Student does not exist on SMS:"
  If record already exist on {SREGMS-7}:
Test for Student Number, Test ID, Test Name, Test Type, Test Date give error "Test Record Already exists for Student"

Example of report output:

Example of the report output from {SREGMS-10}



Processing
Rules
 



Example of download file - AST_030613_1053.csv:

e-asTTle Tabular Report Created on 03/06/2013 at 22:52
TestID,Test Name,Test Type,Date Modified,Student Master ID,NSN ID,Last Name,First Name,Funding Year Level,Date Tested,Gender,Language,Ethnicity,Overall Score,Overall Level,Surface Score,Surface Level,Deep Score,Deep Level,Attitude - General,Ideas Score,Ideas Level,Structure Score,Structure Level,Organisation Score,Organisation Level,Vocabulary Score,Vocabulary Level,Sentence Score,Sentence Level,Punctuation Score,Punctuation Level,Spelling Score,Spelling Level
300770,2013 WR PETS,Writing,26/03/2013 11:58:10,211535601,0133087465,Brown,Brooke Sarah,6,12/03/2013,Female,English,Maori,1312.0,<2B,-,-,-,-,3.3,1405.0,2P,1272.0,<2B,1217.0,<2B,1235.0,<2B,1265.0,<2B,1375.0,2B,1350.0,<2B,
300770,2013 WR PETS,Writing,26/03/2013 11:59:35,211535598,0137227331,Brown,Sasha Pipi,4,12/03/2013,Female,English,Maori,1256.0,<2B,-,-,-,-,2.2,1192.0,<2B,1272.0,<2B,1217.0,<2B,1235.0,<2B,1265.0,<2B,1375.0,2B,1028.0,<2B,
300770,2013 WR PETS,Writing,13/05/2013 15:53:39,211478012,0138980849,Mutton,Jesse Benjamin Annan,3,12/03/2013,Male,English,NZ European,1532.0,3P,-,-,-,-,2.7,1405.0,2P,1469.0,2A,1614.0,4B,1571.0,3A,1575.0,3A,1528.0,3P,1506.0,3B,
300770,2013 WR PETS,Writing,27/05/2013 13:05:14,212591130,0130205679,Nicholls,Adam Stanley,10,12/03/2013,Male,English,NZ European,1410.0,2P,-,-,-,-,2.0,1570.0,3A,1469.0,2A,1506.0,3B,1428.0,2P,1454.0,2A,1252.0,<2B,1028.0,<2B,
300770,2013 WR PETS,Writing,27/05/2013 13:06:02,211562510,0140214700,Hartmann,Lara Luise,9,12/03/2013,Female,Other Than English,Not supplied,1674.0,4A,-,-,-,-,3.0,1686.0,4A,1718.0,5B,1614.0,4B,1679.0,4A,1691.0,4A,1662.0,4A,1641.0,4P,
300770,2013 WR PETS,Writing,27/05/2013 13:20:00,212019511,0132265794,Harrison,Courtney Joanne,9,12/03/2013,Female,English,NZ European,1532.0,3P,-,-,-,-,2.7,1570.0,3A,1469.0,2A,1506.0,3B,1571.0,3A,1575.0,3A,1528.0,3P,1506.0,3B,
300770,2013 WR PETS,Writing,27/05/2013 13:20:35,200446483,0132232108,Wyllie,Andrew John,10,12/03/2013,Male,English,NZ European,1432.0,2P,-,-,-,-,2.0,1570.0,3A,1469.0,2A,1396.0,2B,1428.0,2P,1454.0,2A,1375.0,2B,1350.0,<2B,
300770,2013 WR PETS,Writing,28/05/2013 13:52:31,206992773,0132224734,Gilmour,Hamish,6,12/03/2013,Male,English,NZ European,1432.0,2P,-,-,-,-,2.2,1405.0,2P,1469.0,2A,1506.0,3B,1428.0,2P,1454.0,2A,1375.0,2B,1350.0,<2B,
300770,2013 WR PETS,Writing,28/05/2013 14:12:56,208193894,0136260990,Bain,Emma Elizabeth,4,12/03/2013,Female,English,NZ European,1363.0,2B,-,-,-,-,4.0,1570.0,3A,1469.0,2A,1396.0,2B,1428.0,2P,1265.0,<2B,1252.0,<2B,1028.0,<2B,
Averages,,,,,,,,,,,,,1438.0,2P,-,-,-,-,2.7,1486.0,2A,1453.0,2A,1441.0,2P,1445.0,2P,1444.0,2P,1414.0,2P,1309.0,<2B,


TestID,Test Name,Test Type,Date Modified,Student Master ID,NSN ID,Last Name,First Name,Funding Year Level,Date Tested,Gender,Language,Ethnicity,Overall Score,Overall Level,Surface Score,Surface Level,Deep Score,Deep Level,Attitude - General,Ideas Score,Ideas Level,Structure Score,Structure Level,Organisation Score,Organisation Level,Vocabulary Score,Vocabulary Level,Sentence Score,Sentence Level,Punctuation Score,Punctuation Level,Spelling Score,Spelling Level
300767,2013 WR FRIENDS,Writing,28/03/2013 09:53:03,213029235,0128630707,Slack,Nadya Faye,7,12/03/2013,Female,English,NZ European,1544.0,3P,-,-,-,-,2.8,1564.0,3A,1713.0,5B,1609.0,4B,1423.0,2P,1448.0,2A,1656.0,4P,1344.0,<2B,
300767,2013 WR FRIENDS,Writing,11/04/2013 09:34:16,202777878,0132283805,Tarrant,Shannon Alexander,9,12/03/2013,Female,English,NZ European,1746.0,5P,-,-,-,-,2.2,1680.0,4A,1713.0,5B,1766.0,5P,1674.0,4A,1686.0,4A,1859.0,6B,1761.0,5P,
300767,2013 WR FRIENDS,Writing,11/04/2013 09:36:36,212002783,0131479144,Tarrant,Renee Miriam,7,12/03/2013,Female,English,NZ European,1633.0,4P,-,-,-,-,1.7,1680.0,4A,1713.0,5B,1766.0,5P,1566.0,3A,1570.0,3A,1656.0,4P,1500.0,3B,
300767,2013 WR FRIENDS,Writing,06/05/2013 10:52:31,208209936,0136130099,Gray,Ashleigh Thelma,4,12/03/2013,Female,English,NZ European,1526.0,3P,-,-,-,-,2.8,1564.0,3A,1596.0,4B,1609.0,4B,1423.0,2P,1570.0,3A,1523.0,3B,1344.0,<2B,
300767,2013 WR FRIENDS,Writing,06/05/2013 10:53:59,209311912,0141379180,Tarrant,Jessica Jane,3,12/03/2013,Female,English,NZ European,1488.0,2A,-,-,-,-,3.0,1400.0,2B,1464.0,2A,1609.0,4B,1423.0,2P,1570.0,3A,1523.0,3B,1344.0,<2B,
300767,2013 WR FRIENDS,Writing,06/05/2013 10:54:32,211509236,0139367288,Salmon,Benjamin Luke,3,12/03/2013,Male,English,NZ European,1279.0,<2B,-,-,-,-,1.5,1187.0,<2B,1266.0,<2B,1390.0,2B,1230.0,<2B,1260.0,<2B,1370.0,2B,1022.0,<2B,
300767,2013 WR FRIENDS,Writing,06/05/2013 11:58:18,210444939,0136581969,Walker,Toby Moss,4,12/03/2013,Male,English,NZ European,1427.0,2P,-,-,-,-,2.8,1187.0,<2B,1464.0,2A,1609.0,4B,1230.0,<2B,1448.0,2A,1523.0,3B,1344.0,<2B,
300767,2013 WR FRIENDS,Writing,15/05/2013 10:49:56,212060597,0127376923,Poharama,Moira-Lee,10,12/03/2013,Female,Other Than English,Maori,1488.0,2A,-,-,-,-,2.3,1564.0,3A,1464.0,2A,1501.0,3B,1423.0,2P,1570.0,3A,1370.0,2B,1500.0,3B,
300767,2013 WR FRIENDS,Writing,15/05/2013 14:14:27,212615200,0126167483,Hahn,Jesse Lloyd,8,12/03/2013,Male,English,NZ European,1357.0,<2B,-,-,-,-,1.3,1564.0,3A,1464.0,2A,1390.0,2B,1230.0,<2B,1260.0,<2B,1370.0,2B,1022.0,<2B,




History of Changes

Date System Version By Whom Job Description
02-Jul-2013 v02.0.0.0 Bea Swart
f191901 New on-line help document