DAP date input help please
Jbl Lbj <[email protected]> Tue, 26 Jun 2012 06:51:48 -0700 (PDT)
| Newsgroups | gmane.comp.statistics.dap.bugs |
|---|---|
| Message-ID | <[email protected]> |
--71394665-1061760142-1340718708=:59643 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi,=0A=0AI'm new to Linux and just started using DAP to prepare for a SAS o= riented entry level job.=0A=0AI've been unable to figure out how to enter d= ates in DAP, and would appreciate any help=0A=0A=0AIn SAS, the method I kno= w to input and print birthdate is:=0A=0ADATA assignment1;=0A=A0=A0 INFILE '= file location';=0A=A0=A0 length name $ 20;=0A=A0=A0 input name $ birthdate = mmddyy11.;=0APROC PRINT DATA =3D assignment1;=0A=A0=A0 FORMAT birthdate mmd= dyy11.;=0ARUN;=0A=0AI've read the DAP manual, but a lot of the Linux style = instructions are hard for me to understand. I tried simply exchanging=0A=0A= SAS code:=0A=A0=A0 length name $ 20;=0Ainput name $ birthdate mmddyy11.;=0A= PROC PRINT DATA =3D assignment1;=0A=A0=A0 FORMAT birthdate mmddyy11.;=0A=0A= with=0A=0ADAP code:=0A=A0=A0 length name $ 20;=0Ainput name birthdate MM/DD= /YYYY;=0APROC PRINT DATA =3D assignment1;=0A=A0=A0 FORMAT birthdate MM/DD/Y= YYY;=0A=0ANo luck, and I'm stuck. I appreciate any pointers you could give.= =0A=0AThanks,Jim --71394665-1061760142-1340718708=:59643 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"color:#000; background-color:#fff; font-family:ti= mes new roman, new york, times, serif;font-size:12pt"><div>Hi,</div><div><b= r></div><div>I'm new to Linux and just started using DAP to prepare for a S= AS oriented entry level job.</div><div><br></div><div>I've been unable to f= igure out how to enter dates in DAP, and would appreciate any help<br></div= ><div><br></div><div>In SAS, the method I know to input and print birthdate= is:</div><div><br></div><div>DATA assignment1;</div><div> INFI= LE 'file location';</div><div> length name $ 20;</div><div>&nbs= p; input name $ birthdate mmddyy11.;</div><div>PROC PRINT DATA =3D as= signment1;</div><div> FORMAT birthdate mmddyy11.;</div><div>RUN= ;</div><div><br></div><div>I've read the DAP manual, but a lot of the Linux= style instructions are hard for me to understand. I tried simply exchangin= g</div><div><br></div><div>SAS code:</div><div> length name=0A = $ 20;</div><div>input name $ birthdate mmddyy11.;</div><div>PROC PRINT DATA= =3D assignment1;</div>=0A<div> FORMAT birthdate mmddyy11.;</di= v>=0A<div><br></div><div>with</div><div><br></div><div>DAP code:</div><div>= length name $ 20;</div><div>input name birthdate MM/DD/YYYY;</= div><div>PROC PRINT DATA =3D assignment1;</div>=0A<div> FORMAT = birthdate MM/DD/YYYY;</div>=0A<div><br></div><div>No luck, and I'm stuck. I= appreciate any pointers you could give.</div><div><br></div><div>Thanks,</= div>Jim</div></body></html> --71394665-1061760142-1340718708=:59643--