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: 44
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: 10352
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: 1542
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: 44
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. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts CONDITIONAL USING COMP-2 WITH PROBLEMS. JOSUEGENTIL COBOL Programming 7 Wed Nov 08, 2017 11:13 pm
No new posts how can i move s9(9) to s9(9) usage comp HARENDRA CHOUDHARY COBOL Programming 3 Mon Nov 06, 2017 12:10 am
No new posts COBOL - EXIT statement weird behavior anthony.pangestu COBOL Programming 0 Fri Oct 27, 2017 9:57 am

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