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: 10541
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: 1567
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 COBOL D2 program execution without us... dipsybaby DB2 2 Mon Dec 10, 2018 2:08 pm
No new posts calling java code(on mainframe from c... elixir1986 COBOL Programming 1 Fri Nov 30, 2018 1:57 am
No new posts COBOL file declaration jithinraghavan COBOL Programming 2 Fri Nov 16, 2018 10:54 pm
No new posts Accessing control blocks to retrieve ... menonkiran COBOL Programming 5 Wed Nov 14, 2018 9:08 pm
No new posts S9(11)V9(02) to S9(9)V9(2) COMP-3 sprikitik SYNCSORT 2 Tue Oct 23, 2018 6:19 pm

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