Please, anyone, let me know the style or an example of using
'by='/'by' variable of a PDV(Program Data Vector)
Answer Posted / rajesh
list of 'by' variables tell SAS how data is stored in
source dataset or how it is to be represented in
output/output dataset.
PDV is used to write the observations in output dataset and
it does not get impected from any BY variable as data in
SAS always read sequencely. If BY vaialbes are there then
it just ensures that source dataset is sorted on list of BY
variables. It does not impact other thing.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
what techniques and/or procs do you use for tables? : Sas programming
What is SAS? What are the functions does it performs?
How would you identify a macro variable? : sas-macro
what is metadata? : Sas-bi
Given an unsorted data set, how to read the last observation to a new data set?
what other sas products have you used and consider yourself proficient in using? : Sas programming
what are the benefits of data integration? : Sas-di
What are the limitations for memory allocation for SAS variables
Briefly explain input and put function?
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
why is sas considered self-documenting? : Sas programming
what versions of sas have you used (on which platforms)? : Sas programming
what is sas application server? : Sas-di
which date function advances a date, time or datetime value by a given interval? : Sas programming
How do you convert basic cube to transaction cube and transaction cube to basic cube?