BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
fpascal
Quartz | Level 8

All - I would like to turn the below data step into 4 files that are appended together.  the 'j' files have the same format and 'k' file has a different format - less and a few different fields.  The record count on my data step seems to be off.   Not sure of the best way to accomplish this task using SAS general programming or SQL;

 

order the files should be appended

etl.inp_claimsj_lds2013

etl.inp_claimsj_lds2014

etl.inp_claimsj_lds2015

etl.inp_claimsk_lds2016

 

SAS Code

data etl.inp_claims_lds2013_2016;
set etl.inp_claimsj_lds2013 etl.inp_claimsj_lds2014 etl.inp_claimsj_lds2015 etl.inp_claimsk_lds2016;

run;

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisNZ
Tourmaline | Level 20

Your code looks line.

 The record count on my data step seems to be off. 

Why do you say that? Post the log please.

View solution in original post

2 REPLIES 2
ChrisNZ
Tourmaline | Level 20

Your code looks line.

 The record count on my data step seems to be off. 

Why do you say that? Post the log please.

fpascal
Quartz | Level 8
You are right ... i did some manual calculations
the numbers came up different in Tableau so i will check my code there

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 2 replies
  • 363 views
  • 0 likes
  • 2 in conversation