If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Precompiler option to avoid 'BEGIN DECLARE SECTION'

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-10-05, 07:17
luismigallego luismigallego is offline
Registered User
 
Join Date: Feb 2005
Posts: 1
Question Precompiler option to avoid 'BEGIN DECLARE SECTION'

hI,
I am working with DB2 v8 in an AIX operative system trying to compile COBOL programs.
I would like to avoid de DB2 sentence 'BEGIN DECLARE SECTION' to define 'variables host' in the working storage section of the cobol program, but I can't find wich is the precompiler directive to do it.

In know than in DB2 v7 in operative system z/OS (In a Mainframe) the precompiler directive is STDSQL(NO) but I can't find the equivalent in AIX.

Regards.
Reply With Quote
  #2 (permalink)  
Old 02-10-05, 07:58
GertK GertK is offline
Registered User
 
Join Date: Nov 2003
Location: Netherlands
Posts: 96
Search the COBOL compiler docs, which compiler are you compiling with?
Reply With Quote
  #3 (permalink)  
Old 02-10-05, 20:31
jacampbell jacampbell is offline
Registered User
 
Join Date: Jan 2005
Posts: 191
DB2 for MVS (from which DB2 for zOS is a direct decendant) was written before there was an SQL Standard. Consequently it has options for ignoring the standard that DB2 for LUW doesn't have - otherwise working code would break.

There's nothing to stop you adding the DECLARE SECTION statements.

James Campbell
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On