Page 1 of 1
Allowing Blanks for Numeric Fields
Posted: November 16th, 2016, 6:16 am
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.
Re: Allowing Blanks for Numeric Fields
Posted: November 16th, 2016, 6:48 am
by khurshid.arshad
Dear Titus
Please see age variable in attached file.
a.
Re: Allowing Blanks for Numeric Fields
Posted: November 17th, 2016, 10:05 am
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.
Re: Allowing Blanks for Numeric Fields
Posted: November 17th, 2016, 1:47 pm
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
Re: Allowing Blanks for Numeric Fields
Posted: November 18th, 2016, 11:44 am
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.