Search found 1851 matches

by Gregory Martin
January 16th, 2025, 7:39 am
Forum: Entry
Topic: Delete a character from a string
Replies: 1
Views: 328

Re: Delete a character from a string

I'm not sure if you're really posting about CSPro, but if so, you can do something like: function string RemoveTrailingCommas( string text) // convert commas to spaces do numeric ctr = length ( strip (text)) while ctr >= 1 and text[ctr: 1 ] = ',' by - 1 text[ctr: 1 ] = ' ' ; enddo ; // return the tr...
by Gregory Martin
December 26th, 2024, 11:00 am
Forum: Entry
Topic: Get day of the week
Replies: 4
Views: 4767

Re: Get day of the week

You can also look at: viewtopic.php?t=3183
by Gregory Martin
December 11th, 2024, 11:51 am
Forum: Tools
Topic: Exporting entire dictionary in Excel as separate columns
Replies: 2
Views: 2158

Re: Exporting entire dictionary in Excel as separate columns

There is no way to do this directly using CSPro. If you want to automate this process, you will have to parse the dictionary .dcf file yourself and output the data you are interested in. For example, here is a shell of a JavaScript program that writes out some information about a dictionary. The dic...
by Gregory Martin
December 10th, 2024, 12:10 pm
Forum: Entry
Topic: Exporting data
Replies: 3
Views: 4201

Re: Exporting data

Also take a look at the ways you can export data from Data Viewer: https://www.csprousers.org/help/DataVie ... xport.html

You can write directly to an Excel file (one worksheet per record), or to Stata (one file per record, which you can then join within Stata).
by Gregory Martin
November 25th, 2024, 10:36 am
Forum: Tools
Topic: Joining csdb abd json files
Replies: 1
Views: 3378

Re: Joining csdb abd json files

You can use the Concatenate Data tool to combine cases from multiple data sources (files):

https://www.csprousers.org/help/CSConca ... _data.html

The format of the inputs does not matter, so you can concatenate CSPro DB cases along with JSON cases.
by Gregory Martin
November 19th, 2024, 7:18 am
Forum: Entry
Topic: Application opening error
Replies: 2
Views: 4360

Re: Application opening error

It looks like your files are corrupt. If you want, you can send them to cspro@lists.census.gov, or post them here, and we can see if there is any recoverable data.
by Gregory Martin
November 18th, 2024, 6:47 am
Forum: Android
Topic: filtering csdbe with no record
Replies: 1
Views: 3086

Re: filtering csdbe with no record

Are you talking about "records" or "cases"? I'm assuming that you mean that you are receiving files that have no cases. If so, you can use logic to determine if there are any cases: setfile (DICT_NAME, "file1.csdbe|password=1234" ); if countcases (DICT_NAME) > 0 then //...
by Gregory Martin
November 5th, 2024, 4:05 pm
Forum: Entry
Topic: A multiple occurring item inside a roster
Replies: 6
Views: 10675

Re: A multiple occurring item inside a roster

The CSPro form designer does not allow you to create a roster that has multiply-occurring items. The only way to implement this is to use a repeating form, which you do by selecting the "Don't Roster" option when dragging the record onto the form: https://www.csprousers.org/help/CSPro/drag...
by Gregory Martin
October 10th, 2024, 2:29 pm
Forum: Editing
Topic: Modify record type
Replies: 2
Views: 10432

Re: Modify record type

If you are trying to do this in CSPro, you'll have to manipulate the data file using CSPro's file functions. First, you need to come up with a way to determine what lines are questionnaire records vs. person records. Perhaps the length of the record will tell you, or perhaps the order of the records...
by Gregory Martin
October 10th, 2024, 1:11 pm
Forum: Android
Topic: increase the gap between value labels
Replies: 1
Views: 12610

Re: increase the gap between value labels

Unfortunately, at the moment there is no way to increase the gap between value labels. We will consider adding modifications to the UI in a future release.