Hi. I have created a field that stores a specific quantity for a job. I would like my program to take the quantity in the field, go to that record number, and copy then delete all records after that number
The below code is not working for me though. I am okay until I get to the skip next &quantity. Can someone help me out with this?
Thanks,
Elena Boughey
alter table alltrim(lower(thefile)) add column QUANTITY C(10)
CCOUNT = SPACE (50)
clear
@ 5,5 say 'Enter Quantity for job: ' get CCOUNT
READ
clear
repl all QUANTITY with ALLTRIM(CCOUNT)
SKIP next &QUANTITY
DELETE REST
COPY TO overs FOR DELETED()
pack
The below code is not working for me though. I am okay until I get to the skip next &quantity. Can someone help me out with this?
Thanks,
Elena Boughey
alter table alltrim(lower(thefile)) add column QUANTITY C(10)
CCOUNT = SPACE (50)
clear
@ 5,5 say 'Enter Quantity for job: ' get CCOUNT
READ
clear
repl all QUANTITY with ALLTRIM(CCOUNT)
SKIP next &QUANTITY
DELETE REST
COPY TO overs FOR DELETED()
pack