Over 10 Million Study Resources Now at Your Fingertips


Download as :
Rating : ⭐⭐⭐⭐⭐
Price : $10.99
Language:EN
Pages: 2

And single-digit representing the quarter the year

Chapter 2: Displaying SAS Date, Time, and Datetime Values as Dates and Times45

DTWKDATXw.

DTWKDATX3.

Mon

DTWKDATX9.
DTWKDATX15.

Leading space.

DTWKDATX23.

Monday, 27 Feb 2012

DTWKDATX29. Monday, 27 February 2012 Leading spaces in example, but will fit any

DTYEARw. displays the year for the given datetime value. The DTYEAR. format is identical in result to the YEAR. format, but it is used with datetime values instead of date values. It is right-justified, andwcan be from 2 to 4, with a default width of 4. When w is specified as 2 or 3, a two-digit year is used. The following table shows the result when the datetime value is 1716310050.2, which corresponds to the time 4:47:30 p.m. on May 21, 2014.

Format Name

Two-digit year.

DTYEAR3.

Two-digit year with a leading space.

46 The Essential Guide to SAS Dates and Times, Second Edition

DTYYQCw.

Format Name

12:3

Two-digit year.

Leading space; two-digit year.

Four-digit year.

MDYAMPMw.

Result
5/19/14

In SAS versions earlier than 9.4, the date is represented as

0/0/0 for lengths less than 17.

How It Works
Login account
Login Your Account
Add to cart
Add to Cart
Payment
Make payment
Document download
Download File
PageId: ELI6B280AF
img
Uploaded by :
GBDxGObX
Page 1 Preview
and singledigit representing the quarter the year
Sell Your Old Documents & Earn Wallet Balance