BookmarkSubscribeRSS Feed
gneccao
Obsidian | Level 7

Hi,

 

I have a .NET application to run SaS scripts, i´m trying to create a Data Set, using a the data in a file.

 

I have others imports running the same script and it´s ok, but when i try to import that one, the result message doens´t show any errors or warning, but the DataSet is created empty. When i run the script in the Guide, its work perfectly.

 

DATA WORK.DataTest;
	FORMAT
PROTOCOLO	BEST12.
ASSUNTO	$CHAR174.
ENVIADOPOR	$CHAR54.
DATAEMAIL	DATETIME18.;
INFILE '/home/users/data.txt'
LRECL=257
ENCODING="LATIN1"
TERMSTR=LF
DLM='&'
MISSOVER
DSD ;
INPUT
PROTOCOLO	: BEST32.
ASSUNTO	: $CHAR174.
ENVIADOPOR	: $CHAR54.
DATAEMAIL	: ?? ANYDTDTM19.;
RUN;

 

I have to send a option? Im confused because its was working for at least 13 files. That´s the only one with the problem of empty DataSet.

3 REPLIES 3
gneccao
Obsidian | Level 7
Well, i don´t know how to explain that, but when i restart the computer..... it´s now working... i really don´t know why...
ChrisHemedinger
Community Manager

You didn't share details about the .NET script you're using.  If it happens again, share info about how that was built and what it's doing.  Differences between EG and other environments usually come down to SAS system options that have been set differently, or user account differences.  Comparing PROC OPTIONS output between the two (while tedious) can help you to figure it out.

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
gneccao
Obsidian | Level 7

Sorry about that.

 

The proc options output you are talking about, is the result log? 

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 3 replies
  • 737 views
  • 1 like
  • 2 in conversation