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 find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts Display FTP Session Count within TSO Yolanda Harvey TSO/ISPF 3 Fri Mar 10, 2017 10:31 pm


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