MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Putting sign into the display output record

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
newcobol
Beginner


Joined: 20 Apr 2006
Posts: 88
Topics: 22

PostPosted: Tue Mar 11, 2014 4:33 pm    Post subject: Putting sign into the display output record Reply with quote

we want the plus or minus to show in the output record.
does anyone know how to change the signed fields. i am turning comp-3 into display data, its working but i want to put a + in first column if it is a positive number. input to sort is PIC S9(15)V9(2) USAGE COMP-3.
here is part of my card:
Code:

OUTREC FIELDS=(1,38,
               39,4,BI,EDIT=(TTTTTTTTT),
               43,4,BI,EDIT=(TTTTTTTTT),
               47,34,
               81,2,BI,EDIT=(TTTT),
               83,2,BI,EDIT=(TT),
               85,2,BI,EDIT=(T),
               87,17,
               124,9,PD,EDIT=(STTTTTTTTTTTTTTT.TT),SIGNS=(,-,,),
               133,9,PD,EDIT=(STTTTTTTTTTTTTTT.TT),SIGNS=(,-,,),
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Mar 11, 2014 5:03 pm    Post subject: Reply with quote

newcobol,

Quite simple.

Code:

SIGNS=(lp,ln,tp,tn)

lp = Leading positive sign
ln = Leading negative sign
tp = trailing positive sign
tn = trailing negative sign


Code:

  OUTREC FIELDS=(1,38,                                           
                 39,4,BI,EDIT=(TTTTTTTTT),                       
                 43,4,BI,EDIT=(TTTTTTTTT),                       
                 47,34,                                         
                 81,2,BI,EDIT=(TTTT),                           
                 83,2,BI,EDIT=(TT),                             
                 85,2,BI,EDIT=(T),                               
                 87,17,                                         
                 124,9,PD,EDIT=(STTTTTTTTTTTTTTT.TT),SIGNS=(+,-),
                 133,9,PD,EDIT=(STTTTTTTTTTTTTTT.TT),SIGNS=(+,-) ,
                 ...


_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group