View previous topic :: View next topic
|
Author |
Message |
John Poulakos
Active User
Joined: 13 Jun 2012 Posts: 178 Location: United States
|
|
|
|
I need to declare a DB2 null indicator in a PL/I program, for an SQL. DB2 says it must be a "SMALLINT". I have never heard of that in PL/I. What should it be? I'm pretty sure it's one byte. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
SMALLINT is a halfword (2 Bytes). It's COBOL equivalent is PICTURE S9(4) COMP (or BINARY). |
|
Back to top |
|
|
John Poulakos
Active User
Joined: 13 Jun 2012 Posts: 178 Location: United States
|
|
|
|
Thanks a lot. I don't have internet access from work. I only had a minute to post the question from a computer with access. |
|
Back to top |
|
|
|