BookmarkSubscribeRSS Feed
purfield
Calcite | Level 5

Hi all,

I was just wondering has anyone come across this problem and how did they resolve it.

I currently have a file of 1910 columns and when I export this using SAS 9.3 not all of the columns are exported, however if I was to do this in SAS 9.1 it is exported fine. As all computers have now been upgraded to SAS 9.3 I was just wondering has anyone over come this problem?

It really isnt ideal to split in two if it can be avoided.

Many thanksx

4 REPLIES 4
Reeza
Super User

What are you exporting to, Excel, CSV? And how are you exporting?

purfield
Calcite | Level 5

Sorry exporting as a space delimited file and the code used is

*exporting the file;

%let location=Y:\6047\Deidre\GWAS\sequence\chr18_seq\imputation\;

data _NULL_;

   call symput('output_file', compress("'"||"&location."||"impute_18_Secondhalf2"||'.bgl'||" ' "));

run;

quit;

filename file1 &output_file. lrecl=1048576;

proc export outfile=file1 dbms=dlm data=unrelated replace; run;

So SAS will perfectly export the first 900 columns or so but is missing the remainder.

ballardw
Super User

Have the lengths of your variables changed? If so LRECL may need an increase.

ballardw
Super User

Also CONTENT sometimes causes problems such as text fields containing what ever your OS interprets as an end of line or new line character.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 780 views
  • 0 likes
  • 3 in conversation