SAS Data Integration Studio, DataFlux Data Management Studio, SAS/ACCESS, SAS Data Loader for Hadoop and others

Lables in DI studio

Accepted Solution Solved
Reply
Super Contributor
Posts: 625
Accepted Solution

Lables in DI studio

I'm developing the DI job to convert the SAS dataset to the CSV file in DI Studio 4.21. I want to add the label for the following variables as follows, so that my output CSV file has the field names like cdnumpol, feemisio and produkt

 

 

t11.POLICY_ID as cdnumpol, 
t1.CREATED_DTTM as feemisio,
t2.PRODUCT_NAME as produkt

Could someone of you tell me how to accomplish this?Adding the description to those variables didn't worked though.

 


Accepted Solutions
Solution
‎03-08-2018 01:41 AM
Respected Advisor
Posts: 4,665

Re: Lables in DI studio

Then use something like the Extract Transformation and map your source table into a target table or view (green table) with the new column names and then use this table/view as input to the File Writer.

View solution in original post


All Replies
Super User
Posts: 5,849

Re: Lables in DI studio

You are changing column names, not SAS labels with that code.

please also share your CSV file generation code so we can see what's going on.

Data never sleeps
Super Contributor
Posts: 625

Re: Lables in DI studio

Could you please tell me how to change the column names in DI studio?

I don't have code for CSV file generation.
Super User
Posts: 5,849

Re: Lables in DI studio

Some confusion here.
It seems from that code snippet you already change the column names.
Labels are reflected in column descriptions.
Data never sleeps
Super Contributor
Posts: 625

Re: Lables in DI studio

I didn't changed the column names. I want to change it as I mentioned in my
initial post.
Solution
‎03-08-2018 01:41 AM
Respected Advisor
Posts: 4,665

Re: Lables in DI studio

Then use something like the Extract Transformation and map your source table into a target table or view (green table) with the new column names and then use this table/view as input to the File Writer.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 151 views
  • 3 likes
  • 3 in conversation