IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

DISPLAY COMP-3 VALUES


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
prashu

New User


Joined: 12 Jun 2005
Posts: 7
Location: hyderabad

PostPosted: Mon Dec 26, 2005 6:37 pm
Reply with quote

HI ALL,

1.IS IT POSSIBLE TO DISPLAY THE COMP-3 VALUES?IF POSSIBLE HOW?

2.WHAT IS THE DIFFERENCE BETWEEN S322 & S522 ABENDS?

3.HOW TO WRITE THE QUERY TO GET THE N'TH MAXIMUM SALARY IN A TABLE?(WITH EXPLANATION)
Back to top
View user's profile Send private message
iknow

Active User


Joined: 22 Aug 2005
Posts: 411
Location: Colarado, US

PostPosted: Tue Dec 27, 2005 7:37 am
Reply with quote

Hi Prashu,


Please search our forum. The topics which you have mentioned has been discussed already.

Search under the concern section to get the exact information.


Hope this helps.
Back to top
View user's profile Send private message
Imran

New User


Joined: 26 Dec 2005
Posts: 12
Location: Pune

PostPosted: Wed Dec 28, 2005 11:43 am
Reply with quote

hi

No it is not possible to display comp-3 .
U define a temp variable. move comp-3 to this variable and then display this temp variable.

Regarding u r nexy question.

s322 - is time abend ; i,e job step ran for more than the stipulated time
sPECIFY TIME=1404


s522 - too many steps in the job or the job steps are in SVC wait.
Specify TIME=NOLIMIT
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Wed Dec 28, 2005 12:47 pm
Reply with quote

Quote:
3.HOW TO WRITE THE QUERY TO GET THE N'TH MAXIMUM SALARY IN A TABLE?(WITH EXPLANATION)

http://ibmmainframes.com/viewtopic.php?t=7683

Check ...If you have any problem understanding the query....

Regards,

Priyesh.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Dec 30, 2005 10:58 pm
Reply with quote

Hi Prashu,

You can DISPLAY a comp-3 value. The verb converts the data to diplay format. The problem is that the low order digit will not display as numeric if the field is a signed numeric and the sign position contains something other than an "F". But this is the samme when numeric display fields are DISPLAYed.

So, the lo-ord digit DISPLAYs as below:
For positive numbers (+):

0 {
1 A
2 B
3 C
4 D
5 E
6 F
7 G
8 H
9 I

For negative numbers (-):

0 {
1 J
2 K
3 L
4 M
5 N
6 O
7 P
8 Q
9 R

So a -1234 will DISPLAY as 123M a +1234 as 123D and an unsigned 1234 as 1234.

P.S. I may have the {} reversed. Did this from memory and at my age... icon_rolleyes.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
Search our Forums:

Back to Top