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
 
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 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 Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts display the sign only if the value is... useit DFSORT/ICETOOL 3 Wed Oct 04, 2017 5:53 pm
No new posts Binary to display characters Roy Ware SYNCSORT 3 Tue Sep 19, 2017 8:46 pm

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