Check if the serial numbers are same in two roster

Discussions about editing and cleaning data
Forum rules
New release: CSPro 8.0
Post Reply
Tsheringcee
Posts: 12
Joined: July 4th, 2017, 4:21 am

Check if the serial numbers are same in two roster

Post by Tsheringcee »

I have two rosters where I have to check if the serial numbers are same . For example I have in dm1 serial number 1 3 5 7 and in dm31 1 3 5 7 ...how do I check if the two serial numbers are same ...for example if the Keyer puts 1 2 3 4 in dm31 then it should generate an error

Thanks
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Check if the serial numbers are same in two roster

Post by Gregory Martin »

If the serial numbers will appear on the same row, you could write logic like this:
PROC DM31

    if DM31 <> DM1(curocc()) then
        errmsg("The serial number must be %d",DM1(curocc()));
        reenter;
    endif;
Tsheringcee
Posts: 12
Joined: July 4th, 2017, 4:21 am

Re: Check if the serial numbers are same in two roster

Post by Tsheringcee »

Thank u so much
Post Reply