I´m trying some editing on a variable which is a subitem (e18) of an item that occurs 3 times. The item belongs to a record type with a max of 20.
I´m inside of that proc e18
The checking works fine, the errmsg also, but when I try to impute the field it does something which I do not know, and change the original value to default.
I´ve tried using the full index system, such as
e18(curocc(rec),curocc(item))
but nothing seems to work.
Apparently I´m doing something very wrong but I cannot catch it.
occurs item inside a multiple occurring record
-
AriSilva
- Posts: 625
- Joined: July 22nd, 2016, 3:55 pm
-
josh
- Posts: 2403
- Joined: May 5th, 2014, 12:49 pm
- Location: Washington DC
Re: occurs item inside a multiple occurring record
If you have a numeric parent item you can run into problems with subitems if blanks or non-numeric characters are introduced into the parent item. Make sure the parent item is alpha.
If that isn't the problem please send us a test app so we can reproduce.
If that isn't the problem please send us a test app so we can reproduce.
-
AriSilva
- Posts: 625
- Joined: July 22nd, 2016, 3:55 pm
Re: occurs item inside a multiple occurring record
Attached the test app.
Plz, execute first the TesteE18.pff which will generate an output file, then execute the TesteE18_Segunda.pff which is the same program reading the output file. You will see that all the variables have default values thatwere not there at the beginning.
Best
Plz, execute first the TesteE18.pff which will generate an output file, then execute the TesteE18_Segunda.pff which is the same program reading the output file. You will see that all the variables have default values thatwere not there at the beginning.
Best
You do not have the required permissions to view the files attached to this post.
Best
Ari
Ari
-
josh
- Posts: 2403
- Joined: May 5th, 2014, 12:49 pm
- Location: Washington DC
Re: occurs item inside a multiple occurring record
The dictionary file is missing from the app you attached.
-
AriSilva
- Posts: 625
- Joined: July 22nd, 2016, 3:55 pm
Re: occurs item inside a multiple occurring record
My mistake.
I did not test it throughly before sending. Sorry.
Here it goes
I did not test it throughly before sending. Sorry.
Here it goes
You do not have the required permissions to view the files attached to this post.
Best
Ari
Ari
-
josh
- Posts: 2403
- Joined: May 5th, 2014, 12:49 pm
- Location: Washington DC
Re: occurs item inside a multiple occurring record
Try making the parent item E18_VIAGENS type alpha. CSPro often runs into problems with numeric items that have subitems. When the subitems are blank it messes up the item.
-
AriSilva
- Posts: 625
- Joined: July 22nd, 2016, 3:55 pm
Re: occurs item inside a multiple occurring record
You are right (as always).
I´ve changed the item group to alpha and the program worked.
I would suggest writing something about that in the help when using subitems, if it is not there already.
Thanks
I´ve changed the item group to alpha and the program worked.
I would suggest writing something about that in the help when using subitems, if it is not there already.
Thanks
Best
Ari
Ari