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 Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm
No new posts BI,TO=ZD Changing Values Tyler Dunbar DFSORT/ICETOOL 4 Tue Jul 25, 2017 12:12 am
No new posts Display upon console bipinpeter COBOL Programming 1 Thu Jun 22, 2017 12:35 am
No new posts Sorting of hex values Saurabh_mi DFSORT/ICETOOL 11 Thu May 25, 2017 3:49 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm


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