LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (July 2000, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sat, 8 Jul 2000 17:20:07 GMT
Reply-To:     sashole@mediaone.net
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Paul Dorfman <paul_dorfman@HOTMAIL.COM>
Subject:      Re: Informat Question
Comments: To: ALiving103@AOL.COM
Content-Type: text/plain; format=flowed

"Arthur D. Livingston" <ALiving103@AOL.COM> wrote:

>Does anyone know the SAS informat for PIC S99V9? I have not been >abole to >find it in the SAS manuals. I am working with a variable >block file with >trailers and the data that I need is located in a >trailer portion of the >file. Also the record layout says the field >has a length of 2 and the >record type is SN.

Arthur,

If must have 2 record layouts: One is a COBOL copybook where you find the PIC, and some other sort of description where SN (I can only guess) might stand for signed numeric. However, if the PIC S99V9 is not followed by anything, most notably, comp-3, the layouts contradict each other, and here is why. S99V9 is then a zoned decimal field, and even though the sign is combined with the last digit as a single character in the rightmost byte, it will still occupy 3 bytes. The corresponding SAS informat is ZD3.1, or S370FZD3.1, if the data have been written on the real computer but are read elsewhere. If the picture is followed by comp-3, then it takes only 2 bytes, indeed, with the sign (C standing for plus, D - for minus) occupying the rightmost nibble. For example, if the number is +123 and you browse the field using the hex mode in ISPF, you will see

13 2C

If this is the case, use the informat PD3.1 or S370PD3.1 .

Kind regards, ======================== Paul M. Dorfman Jacksonville, Fl ======================== ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


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