View previous topic :: View next topic
|
Author |
Message |
senthilkumarse Warnings : 1 New User
Joined: 16 Sep 2005 Posts: 7
|
|
|
|
hai
any one can tell me why we r supposed to use pis x(2) for file status instead of 9(2). |
|
Back to top |
|
|
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
Senthil,
Please go through the below link. http://www.simotime.com/vsmfsk01.htm.
Regards,
Muthuvel. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
senthilkumarse wrote: |
any one can tell me why we r supposed to use pis x(2) for file status instead of 9(2). |
As Muthuvel pointed in his url:
Quote: |
If status-key-1 is a nine (9) then status key 2 is "implementor-defined". Many vendors take advantage of the x"00' to x'FF' (or 0-255) binary value. Therefore, the file status key may not always be a numeric value. |
|
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Plus, I think it's a good idea to define numeric data as PIC X if no arith is planned for them. IMHO, A/N allows for greater flexibility and has better display properties.
Think of all the PIC 9 stuff you see every day: ssn's, phone#s, employee#s, etc. |
|
Back to top |
|
|
|