Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Behaviour of the DCLGEN Variable in COBOL with DB2 program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Haresh

New User


Joined: 04 Jan 2009
Posts: 18
Location: Germany

PostPosted: Mon Jan 26, 2009 4:04 pm    Post subject: Behaviour of the DCLGEN Variable in COBOL with DB2 program
Reply with quote

I accidentally coded in one of the DB2 query within COBOL program like below

DB2_COLUMN_NAME = : DCLGEN-NAME ( space between : and D )

The Prcompilation, compilation & Bind are successful.

Can anyone please explain me why i didnt got any Precompilation error?
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Mon Jan 26, 2009 4:18 pm    Post subject:
Reply with quote

read about white space and the db2 pre-compiler.
Back to top
View user's profile Send private message
Haresh

New User


Joined: 04 Jan 2009
Posts: 18
Location: Germany

PostPosted: Mon Jan 26, 2009 5:02 pm    Post subject:
Reply with quote

Sorry i still didnt able to understand. My search for the white space and precompiler fetched me the following,

Removing white space and leaving a spare byte:
Replace each non-blank white space character with a blank (X'20') before making a compile request for that statement.
White space characters include:
Carriage return (X'0D')
Line feed (X'0A')
Tab (X'09').


But clearly the blank in between is X'40'. Am i missing something in the above explanation. I have given the link where i got this info below,

ftp://ftp.software.ibm.com/software/data/db2/ad/v8/bldg/prepapi.pdf
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 1 Tue Sep 26, 2017 3:07 am
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us