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

To display -ve sign in output from COMP 3


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bbharathiraj
Warnings : 1

New User


Joined: 26 Oct 2006
Posts: 50
Location: Chennai

PostPosted: Sun Nov 28, 2010 2:45 pm
Reply with quote

Dear Friends

I am trying to display the -ve sign using below SORT card.
The PD to ZD is working fine only for +ve values if I change my copybook 9(13)V99.
But if the value is -ve then it display HEX value. How can I fix this?

In below sort card, LENGTH=15 is causing problem

Code:
SORT FIELDS=(1,19,CH,A)                                           
OUTREC FIELDS=(1,19,20,02,BI,ZD,LENGTH=04,22,02,BI,ZD,LENGTH=04,   
              24,08,PD,ZD,LENGTH=15,32,08,PD,ZD,LENGTH=15,         
              40,19,59,02,BI,ZD,LENGTH=04,                         
              61,02,BI,ZD,LENGTH=04,63,04,BI,ZD,LENGTH=08,         
              67,08,PD,ZD,LENGTH=15,75,08,PD,ZD,LENGTH=15)         


I am expecting the output with the below copybook.

Code:
01 HST-ACCOUNT.                                 
   10   HST-NUMBER          PIC  X(19).       
   10   HST-SYL                 PIC  9(04).       
   10   HST-PGID               PIC  9(04).       
   10   HST-AVAIL              PIC  -9(13).99.   
   10   HST-RED                 PIC  -9(13).99.   
   10   HST-NUMBER           PIC  X(19).       
   10   HST-SYL                  PIC  9(04).       
   10   HST-PGID                PIC  9(04).       
   10   HST-PLID                 PIC  9(08).       
   10   HST-AVAILABLE        PIC  -9(13).99.   
   10   HST-RED                  PIC  -9(13).99.


But not sure how to get this using EDIT. can some one help on this?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Nov 29, 2010 6:44 am
Reply with quote

Hello,

Use EDIT and SIGNS. Read here:
ibmmainframes.com/viewtopic.php?t=51161&highlight=edit+signs

There are other similar topics in the forum as well.
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 Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
No new posts XDC SDSF output to temp dataset CLIST & REXX 4
No new posts XL C Trace Preprocessor Output All Other Mainframe Topics 3
Search our Forums:

Back to Top