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
 

 

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: 30
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
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: 1529
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: 30
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
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
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm


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