Page 1 of 1

TSO Command to display decimal values

PostPosted: Fri Jun 17, 2011 2:16 am
by Prasanna G
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

Re: TSO Command to display decimal values

PostPosted: Fri Jun 17, 2011 2:33 am
by dick scherrer
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.

Re: TSO Command to display decimal values

PostPosted: Fri Jun 17, 2011 4:04 am
by Prasanna G
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                                       


Re: TSO Command to display decimal values

PostPosted: Fri Jun 17, 2011 5:18 am
by dick scherrer
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.

Re: TSO Command to display decimal values

PostPosted: Fri Jun 17, 2011 2:54 pm
by NicC
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.

Re: TSO Command to display decimal values

PostPosted: Fri Jun 17, 2011 9:07 pm
by Prasanna G
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.

Re: TSO Command to display decimal values

PostPosted: Fri Jun 17, 2011 9:37 pm
by NicC
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.