Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : programming pearls - The fastest algorithm can frequently be replaced by one that is almost as fast and much easier to understand.

Google
 
Web mainframegurukul.com

Welcome to the mainframegurukul forums.

You are currently viewing our mainframe forums as a guest which gives you limited access to view most discussions, articles. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support at admin@mainframegurukul.com


Stored procedure parm limit

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> DB2 SQL - DB2 PROGRAMMING
  View previous topic :: View next topic  
Author Message
JACK
Member


Joined: 30 Jan 2006
Posts: 20

PostPosted: Wed Oct 11, 2006 2:35 pm    Post subject: Stored procedure parm limit Reply with quote

What is the max size we can define for an inparm when calling a stored proc using db2 v7 or 8 ?.


Thanks for help.


Thanks,
Jack.
Back to top
View user's profile Send private message

ovreddy
Member


Joined: 07 Oct 2006
Posts: 14
Location: Chennai

PostPosted: Wed Oct 11, 2006 5:58 pm    Post subject: Reply with quote

Hi Jack,

A stored procedure parameter is also a DB2 Data Type. So the size limit will be same as normal DB2 data types. The following is the summary of data types in DB2.

CHAR[(n)] [FOR BIT DATA]
CHARACTER[(n)] [FOR BIT DATA] 1 to 254 characters

VARCHAR(n) [FOR BIT DATA]
CHARACTER VARYING(n) [FOR BIT DATA]
CHAR VARYING(n) [FOR BIT DATA]

A variable-length character string. The range of n is 1 to 32 672 characters.

LONG VARCHAR [FOR BIT DATA]

A variable-length character string. The maximum length is 32 700 characters.

GRAPHIC[(n)]

A fixed-length graphic string. The range of n is 1 to 127 double-byte characters. When n is not cpecified the default value is 1.

VARGRAPHIC(n)

A variable-length graphic string. The range of n is 1 to 16 336 double-byte characters.

LONG VARGRAPHIC

A variable-length graphic string. The maximum length is 16 350 double-byte characters

BIGINT

An 8-byte integer with a precision of 19 digits. The range of big integers is -9 223 372 036 854 775 808 to +9 223 372 036 854 775 807.

INTEGER
INT

A 4-byte integer with a precision of 10 digits. The range of large integers is -2 147 483 648 to +2 147 483 647.

SMALLINT

A 2-byte integer with a precision of 5 digits. The range is -32 768 to 32 767.

DECIMAL[(p[,s])]
DEC[(p[,s])]
NUMERIC[(p[,s])]
NUM[(p[,s])]

A packed decimal number with an implicit decimal point. The position of the decimal point is determined by the precision (p) and the scale (s) of the number.

The p specifies the total number of the digits. The range of the precision is 1 to 31 digits.

The s is the number of digits in the fractional part of the number. It cannot be negative or greater than the precision. The range of scale is 0 to the precision of the number.

If p is omitted, the default is 5.

If s is omitted the default is 0, that is, values will have no decimal point or fractional part.

The range of a decimal variable or the numbers in a decimal column is -n to +n, where the absolute value of n is the largest number that can be represented with the applicable precision and scale. The maximum range is -10^31+1 to 10^31-1.

FLOAT, REAL and DOUBLE
FLOAT[(n)]

FLOAT data type is used to store single-precision and double-precision floating-point numbers.

A single-precision floating-point number is a 32-bit approximation of a real number. The number can be zero or can range from -3.402E+38 to -1.175E-37, or from 1.175E-37 to 3.402E+38. The range of n is 1 to 24. IBM DB2 internally represents the single-precision FLOAT data type as the REAL data type.

A double-precision floating-point number is a 64-bit approximation of a real number. The number can be zero or can range from -1.79769E+308 to -2.225E-307, or from 2.225E-307 to 1.79769E+308. The range of n is 25 to 53. IBM DB2 internally represents thedouble-precision FLOAT data type as the DOUBLE [PRECISION] data type.

If n is not specified the default value is 53.

REAL

A single-precision floating-point number.

DOUBLE [PRECISION]

A double-precision floating-point number

DATE, TIME and TIMESTAMP
DATE

The DATE data type stores the date information (year, month, day). The supported range is January 1, 0001 to December 31, 9999.

TIME

The TIME data type stores the time information (hours, minutes, seconds). The supported range is 00 hours 00 minutes 00 seconds to 24 hours 00 minutes 00 seconds.

If the hour is 24, the minute and second specifications are zero.

TIMESTAMP

The TIMESTAMP data type stores the date and time information (year, month, day, hour, minute, second, and microsecond). The supported range is January 1, 0001 00 hours 00 minutes 00 seconds 000000 microseconds to December 31, 9999 24 hours 00 minutes 00 seconds 000000 microseconds
BLOB, CLOB and DBCLOB
BLOB(n[K|M|G])

A BLOB (binary large object) is a variable-length binary string that can be up to 2 gigabytes (2 147 483 647 bytes) long.

If only n by itself is specified, the value of n is the maximum length. If K, M or G is specified the maximum length is 1 024, 1 048 576 or 1 073 741 824 times n, and the maximum value for n is 2 097 152, 2 048 or 2, respectively.

Binary large objects are used to hold data, such as pictures, video and audio. Like FOR BIT DATA character strings, BLOB strings are not associated with a code page.

CLOB(n[K|M|G])

A CLOB (character large object) is a variable-length character string that can be up to 2 gigabytes (2 147 483 647 bytes) long. If the length is zero, the value is called the empty string. This value should not be confused with the null value.

If only n by itself is specified, the value of n is the maximum length. If K, M or G is specified the maximum length is 1 024, 1 048 576 or 1 073 741 824 times n, and the maximum value for n is 2 097 152, 2 048 or 2, respectively.

Character large objects are used to store large SBCS's (single-byte character sets) character-based data such as formatted text, HTML and XML documents.

DBCLOB(n[K|M|G])

A DBCLOB (double-byte character large object) is a variable-length graphic string of double-byte characters that can be up to 1 073 741 823 characters long.

If only n by itself is specified, the value of n is the maximum length. If K, M or G is specified the maximum length is 1 024, 1 048 576 or 1 073 741 824 times n, and the maximum value for n is 1 048 576, 1 024 or 1, respectively.

Double-byte character large objects are used to store large DBCS's (double-byte character sets) character-based data.

DATALINK

A DATALINK value is a character string, which references an object stored external to a database. The DATALINK values encode the file and the filename in terms of a Uniform Resource Locator (URL).

A URL is a text string of the general format:

Thanks,
Reddy
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> DB2 SQL - DB2 PROGRAMMING All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts IAM BEGINNER IN JCL ...PLZ HELP ME 3 Guest 12379 Wed Jul 07, 2010 8:20 am
anilsani285 View latest post
No new posts Hi plz help me out 5 Guest 5261 Wed Jul 07, 2010 8:18 am
anilsani285 View latest post
No new posts File-Aid Help 1 Nicholas 8377 Thu Apr 13, 2006 2:12 pm
rangab View latest post
No new posts Search Batch file-aid help 6 frenchman 9142 Tue Mar 28, 2006 5:30 pm
Guest View latest post
No new posts executing java program thru JCL 1 Guest 7517 Fri Mar 17, 2006 10:14 am
arrbee View latest post
 



This widget requires Flash Player 9 or better








Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB