TSO Command to display decimal values



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

TSO Command to display decimal values

Postby Prasanna G » Fri Jun 17, 2011 2:16 am

I have a field in a file which is s9(9)v99. When I give a value in that field as 150.88 I get it displayed as 1508H.
If I give the value as -158.47, I get the value displayed as 1584P. Is there a TSO command to get the field value by providing 1584P to display -158.47?

Please let me know if I am not clear with my question
User avatar
Prasanna G
 
Posts: 59
Joined: Tue Apr 12, 2011 9:49 pm
Has thanked: 1 time
Been thanked: 0 time

Re: TSO Command to display decimal values

 

Re: TSO Command to display decimal values

Postby dick scherrer » Fri Jun 17, 2011 2:33 am

Hello,

Which screen(s) are you using in TSO?

Using copy/paste and the Code tag post your "input screen" and your "output" screen (do not attach screenshots).

The values you are seeing are signed zoned decimal values. We'll need to learn what processed the edited input values and converted them.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: TSO Command to display decimal values

Postby Prasanna G » Fri Jun 17, 2011 4:04 am

I am getting this value when viewing a file in the File aid.
I would like to know if there are any TSO commands to show the actual value when I give the displayed value.
Similar to giving TSO Date displaying current date TSO xxxx(503827281J) displaying -50382728.11

 
File-AID - Browse - PUBLIC.MBEPH2.SO403.INPUT -------------------- COL 145  344
 COMMAND ===>                                                  SCROLL ===> CSR 
  RECORD:      1                     ENRL-SERV-REC                LENGTH:    3367
 ---- FIELD LEVEL/NAME ------- -FORMAT- ----+----1----+----2----+----3----+----4
             25 NAME-SUFFIX-IN  33/AN                                           
             25 HNR-TITLE-IN    33/AN   MS.                                     
             25 AMOUNT-FILED    DISPLAY 0503827281J                             
                                11/SNUM -50382728.11                           
             25 INDV-WRK-PHN    11/NUM  0                                       
             25 XXSEX-CD         1/AN   M                                       

User avatar
Prasanna G
 
Posts: 59
Joined: Tue Apr 12, 2011 9:49 pm
Has thanked: 1 time
Been thanked: 0 time

Re: TSO Command to display decimal values

Postby dick scherrer » Fri Jun 17, 2011 5:18 am

Hello,

First - File-Aid is not TSO. Best to learn this quickly as your system probably has several products that run in a "TSO Session" but are completely separate products. May of these will have vendors other than IBM.

If you want to read the file and work wth the contents, you can write code to do so. Part of this code would be to reformat the values as you want to see them.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: TSO Command to display decimal values

Postby NicC » Fri Jun 17, 2011 2:54 pm

Why do you want this as your screen-shot shows the number displayed in the format you want immediately underneath the DISPLAY value? You could write down what all the values are and the +/- digit that they refer to and stick that on you wall/in your memory.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: TSO Command to display decimal values

Postby Prasanna G » Fri Jun 17, 2011 9:07 pm

NicC wrote:Why do you want this as your screen-shot shows the number displayed in the format you want immediately underneath the DISPLAY value? You could write down what all the values are and the +/- digit that they refer to and stick that on you wall/in your memory.


Yeah. I have found the pattern of characters from A thru I and J thru R respectively for + and - numbers (1-9). But I just wanted to know whether there are any TSO commands to know the exact value on giving them in any of the TSO command prompts and get the value displayed.
User avatar
Prasanna G
 
Posts: 59
Joined: Tue Apr 12, 2011 9:49 pm
Has thanked: 1 time
Been thanked: 0 time

Re: TSO Command to display decimal values

Postby NicC » Fri Jun 17, 2011 9:37 pm

not that I am aware of. If you want one - you will have to write one or see if someone 'out there' has such a thing.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post