I have the following code
data skipped2;
infile 'c:\6411skipped.txt';
input field $ @;
if field = 'CoreID:' then delete;
input field $8-20;
run;
the actual data looks like this
"CoreID:0000202691"
"CoreID:0000221661"
"CoreID:0000198253"
"CoreID:0000202159"
I only want to read the ID number (ie 0000202691)
I named the variable field with the intention of skipping the CoreID: and beginning with the ID.
How can I do this
data skipped2;
infile 'c:\6411skipped.txt';
input field $ @;
if field = 'CoreID:' then delete;
input field $8-20;
run;
the actual data looks like this
"CoreID:0000202691"
"CoreID:0000221661"
"CoreID:0000198253"
"CoreID:0000202159"
I only want to read the ID number (ie 0000202691)
I named the variable field with the intention of skipping the CoreID: and beginning with the ID.
How can I do this