Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't generate a data step using SAS Viya Copilot #54

Open
joranSAS opened this issue Apr 10, 2024 · 0 comments
Open

Can't generate a data step using SAS Viya Copilot #54

joranSAS opened this issue Apr 10, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@joranSAS
Copy link

Describe the bug
Creating a data step seems to be hard for the copilot. It'll mostly try to solve the problem using a proc sql or some other procedure, even though you specifically instruct it to use a datastep.

*3 Examples of code generations, where only the last one is correct **
/
use a datastep to load the class dataset from the sashelp library and write it to the casuser caslib */
proc import datafile="/bigdisk/lax/frvere/gai-codesas-data/sample_datasets/references/train/import/class.txt"
dbms=dlm
out=mycas.class
replace;
run;

/* provide me an example of how to use the sas data step */
data

/* add a row id to the HMEQ table in the sampsio library. Use the SAS data step to solve this problem */
data mycas.HMEQ;
set sashelp.HMEQ;
id = n;
run;

Expected behavior
To generate a data step every time it was specifically instructed to do so.

Viya Environment
SSEMonthly

@joranSAS joranSAS added the bug Something isn't working label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants