CHAR(9) in record ID
I accidentally created an invalid record(s) in a uv 11.2.5 file that I can't get rid of. The file is CONTROL and the record "@ID" contains multiple CHAR(9)'s. Because CONTROL is open to every process and I can't take the system down, I'm hesitant to try commands that might cause issues. My last resort will be to create a new file, copy the valid records and replace the existing, but there has to be a fix that doesn't require taking the system down.
I've tried to manually select and delete the record(s). I also wrote a program when that failed. I've tried multiple things in the program, using SELECT statements and creating the ID, but the READ statement hits the ELSE clause because it's not valid. The info below demonstrates that a single record selected is handled as 2 records when I edit them.
>SELECT CONTROL = "[19791 ]"
1 record(s) selected to SELECT list #0.
>>AE CONTROL
< 1 > Top of New "LAST.DMD.NEW.DAILY^009* Date of last NEW demand history load" in "CONTROL".
*--: EX
Quit "LAST.DMD.NEW.DAILY^009* Date of last NEW demand history load" in file "CONTROL" not created.
< 2 > Top of New "^00919791 |grep '*'" in "CONTROL".
*--: EX
Quit "^00919791 |grep '*'" in file "CONTROL" not created.
>
------------------------------
Susan Chandler
Consultant
Rocket Forum Shared Account
------------------------------
I've tried to manually select and delete the record(s). I also wrote a program when that failed. I've tried multiple things in the program, using SELECT statements and creating the ID, but the READ statement hits the ELSE clause because it's not valid. The info below demonstrates that a single record selected is handled as 2 records when I edit them.
>SELECT CONTROL = "[19791 ]"
1 record(s) selected to SELECT list #0.
>>AE CONTROL
< 1 > Top of New "LAST.DMD.NEW.DAILY^009* Date of last NEW demand history load" in "CONTROL".
*--: EX
Quit "LAST.DMD.NEW.DAILY^009* Date of last NEW demand history load" in file "CONTROL" not created.
< 2 > Top of New "^00919791 |grep '*'" in "CONTROL".
*--: EX
Quit "^00919791 |grep '*'" in file "CONTROL" not created.
>
------------------------------
Susan Chandler
Consultant
Rocket Forum Shared Account
------------------------------