IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

PL/I small integer?


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
John Poulakos

Active User


Joined: 13 Jun 2012
Posts: 178
Location: United States

PostPosted: Wed Dec 24, 2014 2:22 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Dec 24, 2014 2:29 am
Reply with quote

a simple google search with db2 pl/i data types equivalence

would have taken You to

www-01.ibm.com/support/knowledgecenter/#!/SSEPEK_10.0.0/com.ibm.db2z10.doc.apsg/src/tpc/db2z_equivalentplidatatypes.dita
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Dec 24, 2014 2:31 am
Reply with quote

SMALLINT is a halfword (2 Bytes). It's COBOL equivalent is PICTURE S9(4) COMP (or BINARY).
Back to top
View user's profile Send private message
John Poulakos

Active User


Joined: 13 Jun 2012
Posts: 178
Location: United States

PostPosted: Wed Dec 24, 2014 10:28 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Split large FB file based on Key coun... DFSORT/ICETOOL 4
No new posts Syncsort - NULL in Integer field chec... SYNCSORT 4
No new posts 64bit integer in PLI PL/I & Assembler 1
No new posts Converting Sign leading separate to n... DFSORT/ICETOOL 3
No new posts DB2:: Division of an Integer Column b... DB2 15
Search our Forums:

Back to Top