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 

S9(3)V comp-3 'Vs' S9(3) comp-3

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


Joined: 23 Apr 2004
Posts: 10
Topics: 5

PostPosted: Fri Sep 10, 2004 1:50 am    Post subject: S9(3)V comp-3 'Vs' S9(3) comp-3 Reply with quote

Is

05 W-OUTPUT PIC S9(3)V comp-3.

same as

05 W-OUTPUT PIC S9(3) comp-3. ?

Is there any significance of the first declaration over the second?
Back to top
View user's profile Send private message
NutCracker
Beginner


Joined: 13 Dec 2002
Posts: 45
Topics: 3
Location: 3rd Block from the SUN

PostPosted: Fri Sep 10, 2004 2:27 am    Post subject: Reply with quote

Did you try testing the formats with sample data?
Back to top
View user's profile Send private message
v_mvs
Beginner


Joined: 23 Apr 2004
Posts: 10
Topics: 5

PostPosted: Fri Sep 10, 2004 5:11 am    Post subject: Reply with quote

Nutcraker,

I tested by moving values to the both variables, but i didnt see any difference in the display. I just wanted to know is there any real significance in such declarations.
Back to top
View user's profile Send private message
MikeBaker
Beginner


Joined: 04 May 2004
Posts: 96
Topics: 9

PostPosted: Fri Sep 10, 2004 8:17 pm    Post subject: Reply with quote

The 'V' is an implied decimal point. So... your first declaration is a redundant use of 'V' even though it compiles. But if modify your PICs slightly; ie: PIC S9(4) comp-3 vs PIC S9(3)V9 comp-3. Then you have got something completely different, and you will see the difference if you output it to a Report using an edit pattern which includes a decimal point. But if you examine the field contents through a debugger, then you probably cannot see any difference.
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