Search found 1799 matches
- October 12th, 2011, 12:57 pm
- Forum: Tabulation
- Topic: Tabulation with Alpha fields
- Replies: 7
- Views: 16431
Re: Tabulation with Alpha fields
The reason that this code may not have compiled for you was that you needed to declare several variables at the top of your code. What this function does it check whether a string includes only valid multiple-response characters. The second parameter specifies the number of choices taken from the be...
- October 12th, 2011, 12:23 pm
- Forum: Entry
- Topic: Random Next-Birthday Respondent Selection
- Replies: 0
- Views: 38534
Random Next-Birthday Respondent Selection
In a country where few people know their birthdays, but where you want to use the next-birthday method of respondent selection, you may consider randomly assigning birthdays to each respondent. From that point, using the datediff, min, and seek functions, it is easy to randomly choose a respondent t...
- October 11th, 2011, 1:15 am
- Forum: Entry
- Topic: Store data's in RDBMS
- Replies: 2
- Views: 4643
Re: Store data's in RDBMS
Adding this feature to the export tool may be not be so difficult. How would you want different types of records handled? Would each record be a different table in a database (linked through the ID)? And with a multiply occurring record, would a row number field be added? What are your thoughts on h...
- October 11th, 2011, 1:05 am
- Forum: Tools
- Topic: Tool for Locating Incomplete Cases
- Replies: 5
- Views: 7666
Re: Tool for Locating Incomplete Cases
On the Tools page there is a link at the top for a series of files to download that relate to Microsoft's .NET framework. These is necessary to run this tool. If this doesn't work, run Windows Update several times to make sure that you have the latest versions of the .NET libraries. The .sts file wi...
- October 4th, 2011, 12:46 pm
- Forum: Entry
- Topic: multi occurrence
- Replies: 9
- Views: 10287
Re: multi occurrence
If you want to skip blanks, it might be easiest (and clearest) to account for this before the loop: PROC VALUE numeric i; if VALUE <> notappl then do i = 1 while and i < curocc () if VALUE(i) = VALUE then errmsg ( "Must enter unique value" ); reenter ; endif ; enddo ; endif ;
- September 28th, 2011, 2:34 pm
- Forum: Tools
- Topic: Tool for Locating Incomplete Cases
- Replies: 5
- Views: 7666
Tool for Locating Incomplete Cases
A new tool has been posted on the Tools page. It allows you to quickly identify which of your data files have partially saved (incomplete) cases in them. It does this by searching all the .sts (status) files in a directory or group of directories. This tool may be useful for people coordinating data...
- September 22nd, 2011, 2:20 pm
- Forum: Editing
- Topic: HTML Listing Report
- Replies: 4
- Views: 7360
HTML Listing Report
At the moment, CSPro's listing files (.lst) are only text files. There are a few custom parameters to the file located in the .pff file: ListingWidth=80 MessageWrap=No ErrmsgOverride=No But for more control over how users see listing reports after a program run, a programmer may want to output listi...
- September 22nd, 2011, 2:05 pm
- Forum: Entry
- Topic: Automatic calculation (auto fill function ?)
- Replies: 4
- Views: 7379
Re: Automatic calculation (auto fill function ?)
You don't need to use the impute function. That function is in CSPro for batch editing programs and I can't think of a case in which it would necessary in a data entry application. I do not completely understand your code, but it sounds like you could accomplish what you want to by writing something...
- September 22nd, 2011, 1:55 pm
- Forum: Entry
- Topic: ERROR:You must assign the result of the function to an alpha
- Replies: 12
- Views: 12586
Re: ERROR:You must assign the result of the function to an a
For the benefit of other users, one way to code this would be like this: if not poschar ( "A" ,Q1) then skip to Q3; endif ; The poschar function will search the whole Q1 string, looking for "A." If it finds "A" it will return the position of that character. Otherwise it...
- September 22nd, 2011, 1:51 pm
- Forum: Entry
- Topic: do varying (help)
- Replies: 2
- Views: 4180
Re: do varying (help)
I would write the code like this, without using a loop: PROC Q132_DECLCONF if Q132_DECLCONF = "F" then // F alone skip to Q135_PROBPROFES; elseif poschar ( "ABCDE" ,Q132_DECLCONF) and poschar ( "F" ,Q132_DECLCONF) then // F found with another letter errmsg ( "You c...