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
 
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 VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts CONDITIONAL USING COMP-2 WITH PROBLEMS. JOSUEGENTIL COBOL Programming 7 Wed Nov 08, 2017 11:13 pm
No new posts how can i move s9(9) to s9(9) usage comp HARENDRA CHOUDHARY COBOL Programming 3 Mon Nov 06, 2017 12:10 am
No new posts Copy selected columns from 2 input fi... Poha Eater DFSORT/ICETOOL 3 Thu Nov 02, 2017 3:43 pm
No new posts Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm

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