Page 1 of 1

Filling Roster with info from a dictionary

Posted: April 14th, 2015, 5:37 pm
by jfigueroa
Hi Everyone,

I want to know if it´s there a way to fill a roster with information from a data dictionary ?
If this question is already solved at the forum please let me know.
Any help or suggestion about it is really welcome.

Thanks in Advance.
Joshua Figueroa.

Re: Filling Roster with info from a dictionary

Posted: April 17th, 2015, 9:21 am
by josh
What exactly do you mean? Are you trying to fill in the roster with data from another record or from an external file? If so then you just need to use the insert() function to add each row to the roster and then copy the values into the new row that you added.
do i = 1 while i <= numPersons
  
insert (PERSON_REC(i));
  sex(i) =
1;
  age(i) =
45;
enddo;

Re: Filling Roster with info from a dictionary

Posted: April 17th, 2015, 2:26 pm
by jfigueroa
Thanks for your reply Josh.
Yes actually what I want to do is to fill a roster with data from an external file.
And that function has helped me a lot, I was able to do it with that.

Thank you so much for you for your reply.
Thanks everyone for Reading.

Regards to the community and CSPro Team.