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
 
COMP-5 in COBOL

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

New User


Joined: 10 Jun 2015
Posts: 51
Location: India

PostPosted: Mon Feb 08, 2016 3:16 pm    Post subject: COMP-5 in COBOL
Reply with quote

Hi All

I have SQLCODE defined as below
Code:
05 SQLCODE PIC S9(9) COMP-5



Then it is display as
Code:
Display 'SQLCODE = ' SQLCODE


I am getting output as below
Code:
SQLCODE= 000000072L



Please help me finding this SQL error code
Back to top
View user's profile Send private message

enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10515
Location: italy

PostPosted: Mon Feb 08, 2016 3:40 pm    Post subject: Reply to: COMP-5 IN COBOL
Reply with quote

did You ever care to read about number format on the IBM mainframes
binary, packed, zoned,
and how the sign is represented for signed zoned numbers ?
Code:
72L
FFD
723

is just the poorly formatted representation of a NEGATIVE 723
Your sqlcode is -723

and if You have already decoded the sqlcode ( which was not clear from the question )
just follow the suggestions from the manual
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1563
Location: Andromeda Galaxy

PostPosted: Mon Feb 08, 2016 4:47 pm    Post subject:
Reply with quote

Also check here

http://ibmmainframes.com/viewtopic.php?t=40254
Back to top
View user's profile Send private message
vickey_dw

New User


Joined: 10 Jun 2015
Posts: 51
Location: India

PostPosted: Mon Feb 08, 2016 5:54 pm    Post subject:
Reply with quote

Thanks for your response enrico and Pandora !!!
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 Replace comp-3 field value to comp-3 ... dharmaraok DFSORT/ICETOOL 5 Fri Sep 14, 2018 3:46 pm
No new posts COBOL - JSON GENERATE husni1972 COBOL Programming 1 Fri Aug 17, 2018 3:29 am
No new posts How can we create a flat file in JAVA... jasorn Java & MQSeries 2 Wed Aug 08, 2018 3:08 pm
No new posts Comparing Comp-3 fields with greater ... Prateeksichem1 DFSORT/ICETOOL 11 Fri Jul 13, 2018 8:45 am
No new posts SQL IN predicate using COBOL table jerryte DB2 16 Fri Jun 29, 2018 10:30 pm

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