LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (November 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 7 Nov 2005 15:11:19 -0500
Reply-To:     Talbot Michael Katz <topkatz@MSN.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Talbot Michael Katz <topkatz@MSN.COM>
Subject:      Re: Invalid argument to function DATEJUL...
Comments: To: Carol Srna <csrna@FORD.COM>
Content-Type: text/plain; charset=ISO-8859-1

Hi, Carol.

Line and column references in error messages such as "Invalid argument to function DATEJUL at line 14 column 14" refer to the program, not the data. The DATEJUL function was on the fourteenth line of your program. Usually such an error message causes a data dump like the one you included, but I think we'd need to see more of the data dump(s) to see why you got that error message. It's not clear to me which columns are represented in the piece you included; none of it looks like packed decimal data to my eye, anyway.

-- TMK -- "The Macro Klutz"

On Mon, 7 Nov 2005 12:56:48 -0500, Srna, Carol (C.) <csrna@FORD.COM> wrote:

>Hello All. > >This is the entire error message: >Invalid argument to function DATEJUL at line 14 column 14. > > 1 >1 - - -5 4 >CHAR .&..D ..SYA4..¼ >ZONE 0500C400EECF03B >NUMR 100040012814047 > > CODE: > > DATA DCOL; > INFILE DCOL; > INPUT @05 DCURCTYP $CHAR2. @; > IF DCURCTYP =: 'D'; > INPUT @25 DCDDSNAM $CHAR44. > @79 DCDVOLSR $CHAR6. > @89 DCDALLSP PIB4. > @93 DCDUSESP PIB4. > @105 DCDCREDT PD4. > @113 DCDLSTRF PD4.; > CRDATE=DATEJUL(DCDCREDT); > FORMAT CRDATE MMDDYY8.; > RUN; > >Why am I getting the above message? Why is SAS looking at DATJUL in column 14 when the dates are in columns 105 and 113? >TIA, ~~Carol > >


Back to: Top of message | Previous page | Main SAS-L page