identif = maketext("%03d",visualvalue(FICHE_OP_ID));
Search found 1791 matches
- April 25th, 2017, 10:09 am
- Forum: Entry
- Topic: Using 'maketext' function
- Replies: 4
- Views: 3547
Re: Using 'maketext' function
If you refer to a numeric field before you have entered it (like at the beginning of a modified case), you need to use the visualvalue function. Try:
- April 25th, 2017, 8:24 am
- Forum: Tabulation
- Topic: Invalid CrossTab parameter
- Replies: 8
- Views: 19591
Re: Invalid CrossTab parameter
Hey Cathy,
You mention OLD_TABS. Did you try running the tables with that mode on? If you're running DHS-style (and maybe MICS) tables, you'll need that environment setting on for your tables to properly compile and execute.
Let me know if you have questions about how to set OLD_TABS=Y.
You mention OLD_TABS. Did you try running the tables with that mode on? If you're running DHS-style (and maybe MICS) tables, you'll need that environment setting on for your tables to properly compile and execute.
Let me know if you have questions about how to set OLD_TABS=Y.
- April 25th, 2017, 8:20 am
- Forum: Tools
- Topic: weighting cases/ variables in tabulation
- Replies: 5
- Views: 4788
Re: weighting cases/ variables in tabulation
What you typically would do in this case is: 1) Add an item to your dictionary, on the person form, called RACE_WEIGHT. 2) Write a batch application, that would do something like this: PROC RACE if RACE = 1 then RACE_WEIGHT = 1.15 ; elseif RACE = 2 then RACE_WEIGHT = 0.95 ; // ... endif ; 3) When ru...
- April 25th, 2017, 8:05 am
- Forum: Entry
- Topic: Using 'maketext' function
- Replies: 4
- Views: 3547
Re: Using 'maketext' function
What do you mean that there is no response? If FICHE_OP_ID is notappl, the string might be blank. If you think that the problem might be maketext, I would run this code: identif = maketext ( "%03d" ,FICHE_OP_ID); errmsg ( "%s | %03d" ,identif,FICHE_OP_ID); The error message will ...
- April 25th, 2017, 8:03 am
- Forum: Entry
- Topic: 6.2 version crashing
- Replies: 2
- Views: 2559
Re: 6.2 version crashing
Is there a certain place in logic where this is happening? You might consider moving to CSPro 6.3, or the CSPro 7.0 beta, to see if the problem persists in these versions.
- April 24th, 2017, 8:06 am
- Forum: Tools
- Topic: weighting cases/ variables in tabulation
- Replies: 5
- Views: 4788
Re: weighting cases/ variables in tabulation
In your tabulation application:
1) Click on the "Edit" menu.
2) Select "Tally Attributes Table."
3) There is a Weight area. You can add the name of the variable that is your weight. Or you can add a constant (e.g., 100 if you had a 1% sample).
1) Click on the "Edit" menu.
2) Select "Tally Attributes Table."
3) There is a Weight area. You can add the name of the variable that is your weight. Or you can add a constant (e.g., 100 if you had a 1% sample).
- April 20th, 2017, 7:53 am
- Forum: Other
- Topic: restrict barcode
- Replies: 14
- Views: 12048
Re: restrict barcode
string_variable[1] will return the whole string, starting at position 1. You want to check just the first character, which you can do like this:
if QI2A[1:1] <> "N" then
- April 19th, 2017, 12:30 pm
- Forum: Entry
- Topic: Creating a Variable to Concat and Export a Daily Data
- Replies: 3
- Views: 4539
Re: Creating a Variable to Concat and Export a Daily Data
I'm not sure what you mean, but if you're looking to run a PFF file that concatenates and exports data, that is possible. Say you have a menu program, you could write logic like this: execpff ( "Concatenate Data.pff" ,wait); execpff ( "Export Data.pff" ,wait); You would have to e...
- April 17th, 2017, 12:15 pm
- Forum: Other
- Topic: Unexpected ending CSBatch
- Replies: 3
- Views: 4407
Re: Unexpected ending CSBatch
We've heard of this happening in the past. Can you use the CSPro 7.0 beta and see if it still happens:
http://csprousers.org/beta/
I assume that you have OLD_TABS = Y set in your environment variables?
http://csprousers.org/beta/
I assume that you have OLD_TABS = Y set in your environment variables?
- April 17th, 2017, 12:07 pm
- Forum: Entry
- Topic: Export using RELATION
- Replies: 2
- Views: 2824
Re: Export using RELATION
Unfortunately, this is a bug. We'll fix it for CSPro 7.0. It occurs if you export a data item that doesn't have a decimal point and when that item is blank (notappl) in the data file. This happens in your file in V406 and V407. This works: export to f2 case_id (HHEA,HHNUM,M1_LINE(i)), MOD_1B, MOD_1 ...