Hi, I'm new and I need some help.
This is 1st time it happened to me.
I was trying to read new file. It's tab delimited excel file, saved to .txt format.
example:
P_VALUE SNP_ID GENE KEGG_ID1 KEGG_ID2 KEGG_ID3
0.9262 seq-xx ADIPOQ hsa03320 hsa04920 hsa04930
0.19101 seq-rxx AP3B1 hsa04142
Now, when I tried to read the file:
data NEW ;
infile &INFILE1 dlm='09'x firstobs=2 ;
length SNP_ID $ 14 ;
input P_VALUE SNP_ID $ GENE $ KEGG_ID1 $ KEGG_ID2 KEGG_ID3 ;
run ;
The output was strange. SAS put next row into empty variable columns so it looks like this:
1 seq-rsxx 0.92620 ADIPOQ hsa03320 . .
2 seq-rsxx 0.19101 AP3B1 hsa04142 0.18945 .
After 'hsa04142' there should be nothing else, and SAS puts there P_VALUE from the next row.
Do you know how to make SAS read this file line by line, filling empty variables with dots or leaving them empty?
Thank you in advance.
This is 1st time it happened to me.
I was trying to read new file. It's tab delimited excel file, saved to .txt format.
example:
P_VALUE SNP_ID GENE KEGG_ID1 KEGG_ID2 KEGG_ID3
0.9262 seq-xx ADIPOQ hsa03320 hsa04920 hsa04930
0.19101 seq-rxx AP3B1 hsa04142
Now, when I tried to read the file:
data NEW ;
infile &INFILE1 dlm='09'x firstobs=2 ;
length SNP_ID $ 14 ;
input P_VALUE SNP_ID $ GENE $ KEGG_ID1 $ KEGG_ID2 KEGG_ID3 ;
run ;
The output was strange. SAS put next row into empty variable columns so it looks like this:
1 seq-rsxx 0.92620 ADIPOQ hsa03320 . .
2 seq-rsxx 0.19101 AP3B1 hsa04142 0.18945 .
After 'hsa04142' there should be nothing else, and SAS puts there P_VALUE from the next row.
Do you know how to make SAS read this file line by line, filling empty variables with dots or leaving them empty?
Thank you in advance.