Help using Base SAS procedures

Regarding Error in migration

Reply
Contributor
Posts: 57

Regarding Error in migration

Dear All ,

I got an error when i am processing SAS version 6 files in SAS version 9 software.

Error is like this

NFHS3.CHIL_BMI.DATA is a Version 6 data set.  In future releases of SAS you may not be

      able to create or update Version 6 data sets. Use PROC MIGRATE to convert the data set to

      Version 9.

ERROR: The variable name Ht_A_pctl is illegal for the version 6 file NFHS3.CHIL_BMI.DATA.

NOTE: The SAS System stopped processing this step because of errors.

WARNING: The data set NFHS3.CHIL_BMI was only partially opened and will not be saved.

NOTE: DATA statement used (Total process time):

      real time           0.03 seconds

      cpu time            0.03 seconds

Please can anybody help in this.

Thanks and Regards,

Anil

Super User
Posts: 6,936

Re: Regarding Error in migration

Please provide the offending code, it makes it much easier to find the right answer. Just supplying the error message without a log containig the offending code is usually not helpful.


The probable reason for your error is that you try to write a dataset in the library containing the V6 dataset. Since this library uses the V6 engine, you have to adhere to V6 naming conventions, which means that variable names must not exceed 8 characters. Ht_A_pctl contains 9 characters.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Super User
Posts: 9,676

Re: Regarding Error in migration

NFHS3.CHIL_BMI.DATA is a Version 6 data set.  In future releases of SAS you may not be

      able to create or update Version 6 data sets. Use PROC MIGRATE to convert the data set to

      Version 9.

But I didn't guarantee that could work.

Xia Keshan

Ask a Question
Discussion stats
  • 2 replies
  • 200 views
  • 0 likes
  • 3 in conversation