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
 

 

DISPLAY COMP-3 VALUES

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: DISPLAY COMP-3 VALUES
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: 413
Location: Colarado, US

PostPosted: Tue Dec 27, 2005 7:37 am    Post subject: Re: DISPLAY COMP-3 VALUES
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    Post subject:
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: 1452
Location: Chicago, IL

PostPosted: Wed Dec 28, 2005 12:47 pm    Post subject: Re: DISPLAY COMP-3 VALUES
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    Post subject:
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    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 Display ZEDLMSG without Pressing F1 &... anandgbe CLIST & REXX 8 Thu Dec 15, 2016 4:20 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Overlaying one set of charater values... Kevin Lindsley SYNCSORT 7 Sat Nov 05, 2016 3:21 am
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm


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