What is data _null_? ,Explain with code when u need to use
it in data step programming ?



What is data _null_? ,Explain with code when u need to use it in data step programming ?..

Answer / Arpit Gautam

Data _NULL_ is a SAS data set that contains only one variable named _NULL_, which has all missing or uninitialized values. It can be used in data step programming when you need to handle missing or uninitialized values in your data sets.

Here's an example of how to use it:

```C
data work;
set have;
if missing then output null;
run;
```

In this example, `have` is the original data set and `work` is the new data set that contains only the rows with missing values. The `if missing` statement checks each variable in the data set, and if any of them are missing or uninitialized, it outputs the row to the `null` data set.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Code Interview Questions

why java is platform independent?

13 Answers   Wipro,


void main () { int x = 10; printf ("x = %d, y = %d", x,--x++); } a. 10, 10 b. 10, 9 c. 10, 11 d. none of the above

2 Answers   HCL,


1) int i=5; j=i++ + i++ + i++; printf("%d",j);This code gives the answer 15.But if we replace the value of the j then anser is different?why? 2)int i=5; printf("%d",i++ + i++ + i++); this givs 18.

8 Answers   IBPS, Infosys, TCS,


write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??

1 Answers   Nagarro,


main( ) { int a[2][3][2] = {{{2,4},{7,8},{3,4}},{{2,2},{2,3},{3,4}}}; printf(ā€œ%u %u %u %d \nā€,a,*a,**a,***a); printf(ā€œ%u %u %u %d \nā€,a+1,*a+1,**a+1,***a+1); }

2 Answers  


enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); }

2 Answers  


hello sir,is there any function in C that can calculate number of digits in an int type variable,suppose:int a=123; 3 digits in a.what ll b answer?

6 Answers  


4. Main() { Int i=3,j=2,c=0,m; m=i&&j||c&I; printf(“%d%d%d%d”,I,j,c,m); }

2 Answers   Broadridge,


void main() { while(1){ if(printf("%d",printf("%d"))) break; else continue; } }

1 Answers  


How we print the table of 2 using for loop in c programing?

14 Answers   HCL, Wipro,


main() { void swap(); int x=10,y=8; swap(&x,&y); printf("x=%d y=%d",x,y); } void swap(int *a, int *b) { *a ^= *b, *b ^= *a, *a ^= *b; }

2 Answers  


main() { int i=10; i=!i>14; Printf ("i=%d",i); }

1 Answers  


Categories