Skip to content

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

Open
@joranSAS

Description

@joranSAS

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions