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: 42
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: 10256
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: 1534
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: 42
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 GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts COBOL Programming Sandpit? jodrisco COBOL Programming 6 Wed Apr 12, 2017 3:47 am


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