dataviewer does not show the save as... menu entry

Discussions about tools to complement CSPro data processing
Forum rules
New release: CSPro 8.0
Post Reply
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

dataviewer does not show the save as... menu entry

Post by AriSilva »

I have an original .csdb file that I want to use just a piece of it.
My technique is:
1. open it in Dataviewer
2. save as .dat file
3. edit this dat file in a text editor, deleting the records I do not want
4. open this .dat file in dataviewer
5. when it asks for the dictionary, point to the same dictionary that was used to create the original .csdb file
6. save as a new .csdb file.
This works every time but with those attached files, after opening the .dat in the dataviewer and pointing the dictionary, it does not enable the save as menu entry.
And when trying to execute a frequency it asks for the data file, and then executes the frequency.
My alternative is to write a batch utility just to read and write the cases, doing nothing.
Unfortunately I cannot send you the original .csdb file from where I created the .dat file, it is too big to be accepted as an attachement.
Attachments
DataViewer.zip
(66.92 KiB) Downloaded 178 times
Best
Ari
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Re: dataviewer does not show the save as... menu entry

Post by AriSilva »

I´m not sure, but I think it has something related with utf-8 and special characters.
By looking at the very first record, the original file is written as Macapá position 194 of the .dat file), field VN30 in the csdb file.
When executing the do-nothing utility just to read and write the .dat to .csdb, it "converts" to MacapÃi,.
Best
Ari
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Re: dataviewer does not show the save as... menu entry

Post by AriSilva »

This .csdb file also seems to work fine in batch programs, but when opening it in dataviewer it does not show the save as menu.
Attachments
VACINAL_00_Cadastro_Criancas_Treinamento_Original.zip
(564.59 KiB) Downloaded 171 times
Best
Ari
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: dataviewer does not show the save as... menu entry

Post by Gregory Martin »

That is controlled by your dictionary security options: https://www.csprousers.org/help/CSPro/d ... tions.html

When I open your dictionary, "Allow exporting data to other formats" is not checked. If you change that setting in your dictionary, you will be able to use Save As options.
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Re: dataviewer does not show the save as... menu entry

Post by AriSilva »

Thanks, Greg.
Best
Ari
Post Reply