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 

% edit data

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Mon Jun 06, 2016 9:59 am    Post subject: % edit data Reply with quote

Code:

15  PRICE    PIC 9(4).9(2).     


to include $ sign, I changed the above to $$$$9.9(2)


similarly, is there a edit PIC available for %.

Code:

15  CO-PCT      PIC 9(2).9(2).           Include % sign. %%9.9(2)


this is not working.

Do I need to define the % separately?

I searched the forums, did not got any on this.
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Mon Jun 06, 2016 10:09 am    Post subject: Reply with quote

No edit PIC for % that I know of. I define it separately. Check the Language Reference Manual.
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Mon Jun 06, 2016 10:45 am    Post subject: Reply with quote

thanks Terry.
Back to top
View user's profile Send private message
William Collins
Supermod


Joined: 03 Jun 2012
Posts: 437
Topics: 0

PostPosted: Mon Jun 06, 2016 10:50 am    Post subject: Reply with quote

Column heading?

All PICture-string possibilities are documented.

If you really want a % on each line: 1) have it as a trailing literal (preferable); 2) use the floating currency sign and then change it (INSPECT, or by code in a loop) to % (user is really, really, picky, and doesn't mind paying for the CPU); 3) there are always three things.
Back to top
View user's profile Send private message
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Mon Jun 06, 2016 11:02 am    Post subject: Reply with quote

Thanks William. I will define it separately, that will resolve my requirement.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming 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