From: sdlenter on
How do I convert the following :
PICTURE S9(05)V99 COMP-3
PICTURE S9(11)V99 COMP-3.
PICTURE S9(11) COMP-3.
PICTURE S9(13) COMP-3.
PICTURE S9(05) COMP-3.
PICTURE S9(03) COMP-3.
PICTURE S9(15) COMP-3.

PICTURE S9(04) COMP.
PICTURE S9(18) COMP.

From: Eric B on
For larger copybooks search for COB2SAS - it'll do alot of the
conversions for you

> PICTURE S9(05)V99 COMP-3
PD4.2
> PICTURE S9(11)V99 COMP-3.
PD7.2
> PICTURE S9(11) COMP-3.
PD6.0
> PICTURE S9(13) COMP-3.
PD7.0
> PICTURE S9(05) COMP-3.
PD3.0
> PICTURE S9(03) COMP-3.
PD2.0
> PICTURE S9(15) COMP-3.
PD8.0
> PICTURE S9(04) COMP.
> PICTURE S9(18) COMP.

Check the IBw.d for the last 2 guys, I dont remember how the lengths
work with the COMP vs. COMP-3 descriptor

Hope that helps.
Eric B

From: "Terjeson, Mark" on
Hi,

See the SAS Informat S370FPDw.d for COBOL 9(n)
See the SAS Informat S370FZDw.d for COBOL S9(n)



Hope this is helpful.


Mark Terjeson
Senior Programmer Analyst, IM&R
Russell Investment Group


Russell
Global Leaders in Multi-Manager Investing






-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L(a)LISTSERV.UGA.EDU] On Behalf Of
sdlenter
Sent: Wednesday, September 13, 2006 3:00 PM
To: SAS-L(a)LISTSERV.UGA.EDU
Subject: Converting Cobol PIC to SAS informats

How do I convert the following :
PICTURE S9(05)V99 COMP-3
PICTURE S9(11)V99 COMP-3.
PICTURE S9(11) COMP-3.
PICTURE S9(13) COMP-3.
PICTURE S9(05) COMP-3.
PICTURE S9(03) COMP-3.
PICTURE S9(15) COMP-3.

PICTURE S9(04) COMP.
PICTURE S9(18) COMP.
From: sdlenter on
that really didn't help...
is it like PD?



"Terjeson, Mark" wrote:
> Hi,
>
> See the SAS Informat S370FPDw.d for COBOL 9(n)
> See the SAS Informat S370FZDw.d for COBOL S9(n)
>
>
>
> Hope this is helpful.
>
>
> Mark Terjeson
> Senior Programmer Analyst, IM&R
> Russell Investment Group
>
>
> Russell
> Global Leaders in Multi-Manager Investing
>
>
>
>
>
>
> -----Original Message-----
> From: SAS(r) Discussion [mailto:SAS-L(a)LISTSERV.UGA.EDU] On Behalf Of
> sdlenter
> Sent: Wednesday, September 13, 2006 3:00 PM
> To: SAS-L(a)LISTSERV.UGA.EDU
> Subject: Converting Cobol PIC to SAS informats
>
> How do I convert the following :
> PICTURE S9(05)V99 COMP-3
> PICTURE S9(11)V99 COMP-3.
> PICTURE S9(11) COMP-3.
> PICTURE S9(13) COMP-3.
> PICTURE S9(05) COMP-3.
> PICTURE S9(03) COMP-3.
> PICTURE S9(15) COMP-3.
>
> PICTURE S9(04) COMP.
> PICTURE S9(18) COMP.

From: Eric B on
> that really didn't help...
> is it like PD?

Yes, PDw.d and PKw.d should do the trick. In general for any n,m >= 1:

PIC S9(n)V9(m) COMP-3 -> PDw.d
where w = ceil(n+m+1/2), and d = m

PIC 9(n)V9(m) COMP-3 -> PKw.d
where w = ceil(n+m/2), and d = m

Hope that helps.
Eric B.