The Census and Survey Processing System (CSPro) is a software package for entering, editing, tabulating, and disseminating data from censuses and surveys. CSPro combines the features of the Integrated Microcomputer Processing System (IMPS) and the Integrated System for Survey Analysis (ISSA).
About Me
- Data Entry and Tabulation Package in CSPro
- Over nine years of research experience in social science and public health research, who specializes large scale survey design and analysis, and data quality in various forms and tools of research work with Quantitative as well as Qualitative techniques and then last five years I have developed data entry and tabulation package in CSPro for various large scale surveys in India as well outside India. Presently I am working as Consultant State Data Manager in UNICEF Chhattisgarh (Through PDCSL).
Wednesday, July 4, 2012
Saturday, March 17, 2012
Custom Data Entry Menus
In CSPro 4.1.002, you can customize the menus of the data entry application, CSEntry, to change the menu options to be in the language of your choice, as long as the language can be represented in ASCII characters (most European languages). In the future, when CSPro supports Unicode, all language scripts will be supported.
To override the default text options, you must create a file called csentry.menu and place it either in the Program Files\CSPro 4.1\ folder, or in the folder where the PFF file for your application is located. This file has a format that is easy to follow. For example, to override the File menu text, you would place this text in the file:
File=Fichier
File_Open=Ouvrir une application
File_OpenDat=Ouvrir un fichier de données
File_Save=Sauvegarde partielle du questionnaire
File_Exit=Fermer
File_Open=Ouvrir une application
File_OpenDat=Ouvrir un fichier de données
File_Save=Sauvegarde partielle du questionnaire
File_Exit=Fermer
To add shortcut keys, place an ampersand before the shortcut letter. For example:
File=&Fichier
File_Open=&Ouvrir une application
File_OpenDat=Ouvrir un fichier de &données
File_Save=&Sauvegarde partielle du questionnaire
File_Exit=&Fermer
File_Open=&Ouvrir une application
File_OpenDat=Ouvrir un fichier de &données
File_Save=&Sauvegarde partielle du questionnaire
File_Exit=&Fermer
Placing the file in the Program Files\CSPro 4.1\ folder means that it will affect every single data entry application run on that machine. Alternatively, placing it in a folder with the PFF allows you to have different menus for different users.
Friday, January 13, 2012
CSPro 4.1.002 was recently released
CSPro 4.1.002 was recently released!
This update version has some significant improvements:
- Application files can be locked to prevent editing within CSPro.
- Multiple logic files can be attached to one application as include files.
- Language additions:
* Functions and statements: abs, getusername, randomin, randomizevs, setcapturepos
- Bug fixes and small enhancements.
For more information on new features go to:
http://www.census.gov/
To download CSPro 4.1.002 go to:
http://www.census.gov/
Thursday, July 7, 2011
New version CSPro 4.1.001 Release Date: 2011-05-05
New version CSPro 4.1.001 Release Date: 2011-05-05 http://www.census.gov/population/international/software/cspro/csprodownload.html
Tuesday, April 5, 2011
Using execsystem to Retrieve a Computer's Username
An example of when this could be useful is if you want to create a PFF file with the data file named after the login ID of the keyer who has logged onto that machine.
PROC GLOBAL
alpha (20) tempFilename = "tempusername.txt";
alpha (300) str;
FILE inputFile;
alpha (50) username;
PROC EXAMPLE
execsystem(maketext('cmd /c "set username > %s"',strip(tempFilename)),wait);
setfile(inputFile,strip(tempFilename));
fileread(inputFile,str);
close(inputFile);
filedelete(strip(tempFilename));
// str looks like this: USERNAME=pedro
username = str[poschar("=",str) + 1];
errmsg("Computer username is %s",strip(username));
Creating a Sample Data File
If you want to create a simple sample data file (perhaps to test tabulations or edits instead of using the complete data file), you can create a small batch program to select cases to output. For instance, this program selects every twentieth case to generate a 5% sample:
PROC GLOBAL
numeric samplePercentage = 5;
numeric caseCount = 0;
PROC CREATESAMPLE_QUEST
preproc
inc(caseCount);
if caseCount = ( 100 / samplePercentage ) then
caseCount = 0;
else
skip case;
endif;
Alternatively, you can use the random function to generate a sample file that does not choose every nth case. Remember to call the seed function before using the random function.
if random(1,100 / samplePercentage) <> 1 then
skip case;
endif;
Subscribe to:
Posts (Atom)
