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 

Sign trailing seperate

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


Joined: 17 Sep 2003
Posts: 21
Topics: 9
Location: Mumbai India

PostPosted: Mon Dec 22, 2003 6:20 am    Post subject: Sign trailing seperate Reply with quote

Hi Friends,

I have two variables defined as follows.
WS-A ------> PIC S9(5)v99 SIGN TRAILING SEPERATE.
WS-B ------> PIC S9(5)v99.

Can somebody tell me how these variables are internally represented ?

Is MOVE WS-A to WS-B be a valid move ?
I also think it might be valid . Please confirm.
_________________
Vish
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Dec 22, 2003 6:41 am    Post subject: Reply with quote

vish,

PIC S9(5)v99 SIGN TRAILING SEPERATE is stored internally in 8 bytes and the move is valid.

If the SEPARATE CHARACTER phrase is specified, then:

  • The operational sign is presumed to be the LEADING or TRAILING character position, whichever is specified, of the elementary numeric data item. This character position is not a digit position.

  • The character S in the PICTURE character string is counted in determining the size of the data item (in terms of standard data format characters).

  • + is the character used for the positive operational sign.

  • - is the character used for the negative operational sign.


If the SEPARATE CHARACTER phrase is not specified, then:

  • The operational sign is presumed to be associated with the LEADING or TRAILING digit position, whichever is specified, of the elementary numeric data item. (In this instance, specification of SIGN IS TRAILING is the equivalent of the standard action of the compiler.)

  • The character S in the PICTURE character string is not counted in determining the size of the item (in terms of standard data format characters).


Hope this helps..

cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Vish
Beginner


Joined: 17 Sep 2003
Posts: 21
Topics: 9
Location: Mumbai India

PostPosted: Mon Dec 22, 2003 7:35 am    Post subject: Reply with quote

Kolusu,
Thanks a lot for your help
_________________
Vish
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