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: 180
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

Senior Moderator


Joined: 14 Mar 2007
Posts: 10713
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: 180
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 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
No new posts Create a small subset of MAN dataset All Other Mainframe Topics 5
Search our Forums:

Back to Top