Exporting using multiple languages

Discussions about tools to complement CSPro data processing
Forum rules
New release: CSPro 8.0
Post Reply
asheffel
Posts: 23
Joined: July 14th, 2014, 9:07 am

Exporting using multiple languages

Post by asheffel »

Hi,

I have a CSPro application that was built to allow to run in English and French. It was adapted and used in French and some edits were made to the French value sets but not the English value sets. The English value sets are the first set in the dictionary, the French are the second. I am now trying to export the final dataset to STATA and by default it is exporting the English value sets which are incorrect. Is there a way to set the export to take the French value sets? Are there any solutions other than manually deleting all the English value sets from the dictionary in order to export correctly to STATA?

Thanks!
mussabahire
Posts: 43
Joined: September 5th, 2016, 4:55 am

Re: Exporting using multiple languages

Post by mussabahire »

I have a same problem too.
Help us pls.
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Exporting using multiple languages

Post by josh »

If instead of doing the export from the export data tool, you do the export from a batch application you can control the language used by calling setlanguage() in the batch app. You can use the export data tool to get the logic to use for the batch application. Here are the steps:

1) Setup all the export options you want in the export data tool
2) From the options menu in the export data tool choose "Copy logic to clipboard"
3) Create a new batch application, choose the same dictionary you used for export as the dictionary for the batch application
4) Paste the logic for the batch application from the clipboard replacing the default logic that was created when you created the batch application
5) In the application preproc (the one that ends in _FF) call setlanguage("FR") replace "FR" with whatever code you used for French in the dictionary.
6) Run the batch application, choose the data file to export as the input data file, choose none for the output data file and for each of the external files enter an appropriate name (there will be one of these for each record type you export).
romi237
Posts: 11
Joined: November 30th, 2018, 1:18 pm

Re: Exporting using multiple languages

Post by romi237 »

Thank for the solution
Post Reply