Allowing Blanks for Numeric Fields

Discussions about CSEntry
Post Reply
Titus
Posts: 13
Joined: November 10th, 2016, 7:27 am

Allowing Blanks for Numeric Fields

Post by Titus »

Hi Guys,
Iam still working on the Cspro Program, now trying to make some numeric fields (rooster) to accept blanks in order to avoid entering non applicable rows. I have tried the "set behaviour command" also "notappl for value set" but non has worked, kindly assist me do this guys.

Thanks,
Titus.
khurshid.arshad
Posts: 572
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan

Re: Allowing Blanks for Numeric Fields

Post by khurshid.arshad »

Dear Titus
Please see age variable in attached file.
a.
Attachments
titus.rar
(2.98 KiB) Downloaded 385 times
Titus
Posts: 13
Joined: November 10th, 2016, 7:27 am

Re: Allowing Blanks for Numeric Fields

Post by Titus »

Thanks Khurshid for shairing the sample, the age variables works the way i want, i have done the same to record 2.9 (item 2.9.2) as well as record 4.4 table but it does not work. Kindly see attached file and advise accordingly.

thank you.

titus.
Attachments
Khurshid.rar
(56.62 KiB) Downloaded 331 times
jfigueroa
Posts: 100
Joined: August 28th, 2014, 12:46 pm

Re: Allowing Blanks for Numeric Fields

Post by jfigueroa »

Hi Titus,

Try the following:

Code: Select all

PROC QNS292

Preproc
set behavior() canenter(notappl) on (noconfirm);

Postproc
set behavior() canenter(notappl) off (noconfirm);

This way you will allow to enter notappl values on your QNS292 field. And since notappl value is blank, you will be able to leave this field blank.
For more information search set behavior() canenter function at CSPro Help.

Hope this can help you.
Regards
Titus
Posts: 13
Joined: November 10th, 2016, 7:27 am

Re: Allowing Blanks for Numeric Fields

Post by Titus »

Thanks so much khurshid, the command had worked very well. Now am done with the instrument, iam to copy the files to 10 tablets for data capture in field then to be exported to one spss for analysis, I tried renaming the files ( using enumerator names) and it disconnected everything. i can't open the forms anymore. kindly advise.

Thank you in advance
Titus.
Post Reply