SYSTEM CONTROL ERASING SKIPPED FIELDS

Discussions about CSEntry
Post Reply
PURPLESTUFF
Posts: 3
Joined: November 30th, 2023, 12:43 pm

SYSTEM CONTROL ERASING SKIPPED FIELDS

Post by PURPLESTUFF »

I am currently preparing for a project. I have roster. I want the some information from the previous occurrence to be pulled in the current occurrence field of a certain variable. example variable (hhm_ethn(1)) whatever is entered for one or even if it was entered in the 3rd occurrence as long as I am using system mode and the value is pulled and the field is skipped or I protect the field, if i try to pull information from the skipped field or protected field the program will crash. I basically need system control mode while being allowed to keep information and skipped fields and also use the same skipped fields as reference for logic.
sherrell
Posts: 397
Joined: April 2nd, 2014, 9:16 pm
Location: Washington, DC

Re: SYSTEM CONTROL ERASING SKIPPED FIELDS

Post by sherrell »

CSPro will not crash if you copy data from a skipped or protected field, though you do need to ensure there is data there to copy.

Do you want the skipped field to be on-path? You will if you want the data in that field to be written out to the case. In that instance you need to check in the field's preproc if there is data there and "skip" entry, or assign data to the cell; in either instance, you'll need to use the noinput command:

https://www.csprousers.org/help/CSPro/n ... ement.html

When copying data from a truly skipped field, you will need to use the visualvalue function:

https://www.csprousers.org/help/CSPro/v ... ction.html

Could you post what you've done so far so we could take a look?

Sherrell
Post Reply