Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

To display -ve sign in output from COMP 3

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: To display -ve sign in output from COMP 3
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

Site Director


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

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

Hello,

Use EDIT and SIGNS. Read here:
http://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    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 How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts JES2 doesn't honor the priority of th... Aron Lendvai JCL & VSAM 7 Thu Jun 29, 2017 1:41 pm
No new posts Display upon console bipinpeter COBOL Programming 1 Thu Jun 22, 2017 12:35 am
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us