IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

OUTREC with EDIT command


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shanmugapriya j

New User


Joined: 28 Dec 2006
Posts: 9
Location: chennai

PostPosted: Fri Aug 21, 2009 12:56 pm
Reply with quote

When I use the EDIT for the decimal values conversion
SORT FIELDS=COPY
OUTREC OVERLAY=(1:5,5,PD,EDIT=(STTTT.TT),SIGNS=(,-))
/*
The output results:
The decimal value (0.30) is displaying as (30). Can anyone help on this
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Fri Aug 21, 2009 1:13 pm
Reply with quote

Please post the HEX form of your 5 byte PD field.
Back to top
View user's profile Send private message
shanmugapriya j

New User


Joined: 28 Dec 2006
Posts: 9
Location: chennai

PostPosted: Fri Aug 21, 2009 2:16 pm
Reply with quote

The hex on Form of value 30 is

00000
0003C
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Fri Aug 21, 2009 9:32 pm
Reply with quote

Quote:
The decimal value (0.30) is displaying as (30). Can anyone help on this

00000
0003C


Huh? When I run your DFSORT statements with that input, I get the following output:

0000.30

So what do you mean its displaying as 30?

Note that PD value is actually stored as 30 and YOU are using the edit mask to interpret it as .30.
Back to top
View user's profile Send private message
shanmugapriya j

New User


Joined: 28 Dec 2006
Posts: 9
Location: chennai

PostPosted: Mon Aug 24, 2009 5:59 pm
Reply with quote

Thanks its working I have used
OUTREC OVERLAY=(1:5,5,PD,EDIT=(SIIII.II),SIGNS=(,-))
instead of OUTREC OVERLAY=(1:5,5,PD,EDIT=(STTTT.TT),SIGNS=(,-))

Didn't use trailing zero thats the reason. Now it is perfect,

Thanx for your help
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
No new posts Query on edit primary command CLIST & REXX 5
Search our Forums:

Back to Top