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
 
OUTREC with EDIT command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: OUTREC with EDIT command
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: 2285
Location: @my desk

PostPosted: Fri Aug 21, 2009 1:13 pm    Post subject:
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    Post subject:
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 Moderator


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

PostPosted: Fri Aug 21, 2009 9:32 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Failure after DIR command Hank Watson All Other Mainframe Topics 2 Tue Aug 29, 2017 3:14 am
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm

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