Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Is Embedded Sign of COBOL valid in DB2?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
sundar28

New User


Joined: 30 Jul 2005
Posts: 12
Location: Mysore

PostPosted: Thu Dec 28, 2006 4:07 pm    Post subject: Is Embedded Sign of COBOL valid in DB2?
Reply with quote

For a field declaration
10 CURRENT-BALANCE PIC S9(6).

the value -12858 is stored internally as 12852Q
where Q is treated as -8 to save space needed for the sign.

1. Will it be TRUE on testing for NUMERIC condition on all COBOL standards?

2. Can it be passed to a DB2 field?
then what is the equivalent DB2 field declaration?


icon_rolleyes.gif
Back to top
View user's profile Send private message

UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 743
Location: Germany

PostPosted: Thu Dec 28, 2006 4:10 pm    Post subject:
Reply with quote

Hi !

Better post your question in the right forum-section.

Regards, UmeySan
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Thu Dec 28, 2006 4:21 pm    Post subject: Re: Is Embedded Sign of COBOL valid in DB2?
Reply with quote

sundar28 wrote:
For a field declaration
10 CURRENT-BALANCE PIC S9(6).
the value -12858 is stored internally as 12852Q
where Q is treated as -8 to save space needed for the sign.
Not so much to save space, but just because that's how it's done...
Quote:
1. Will it be TRUE on testing for NUMERIC condition on all COBOL standards?
Absolutly, yes...
Quote:
2. Can it be passed to a DB2 field?
then what is the equivalent DB2 field declaration?
Absolutly, yes...How does DB2 expect a valid numeric field to be declaired?
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us