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 

Data types in FOCUS

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


Joined: 05 Aug 2006
Posts: 7
Topics: 3

PostPosted: Fri Jan 05, 2007 6:12 am    Post subject: Data types in FOCUS Reply with quote

Hi All,

I am new FOCUS language. I searched through forum and got the manuals and gained some knowledge on FOCUS.
My requirement is to convert the FOCUS program to COBOL program.

I am not able to understand the following code snippet.
PARTICULARY the highlighted one.

DEFINE FILE SNAPSHO1
DATE/A6='000929';
ACCOUNTS/I7=1;
OFFICE/A3=EDIT(ACCT,'999');
END

what does it mean by ACCOUNTS/I7=1 ?
And I searched in the manuals and forums and I did not got the data types in FOCUS. Can anybody please provide the data types in FOCUS?

Thanks in advance for your replies...
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: Fri Jan 05, 2007 9:59 am    Post subject: Reply with quote

hvijayakumar,

I stands for integer.

If the format is A then that field is Alphanumeric and it can contain alphabetic and numeric characters and special characters. It can have a 1 to 256 characters.

If the format is I, F, D, or P then that field is Numeric and it can contain Numeric characters only.

I=whole number D, F, and P can indicate different decimal number formats.

I: 1 to 9 positions
D: 1 to 15 positions
P: 1 to 15 positions
F: 1 to 9 positions


So I7 is equivalent to S9(09) COMP which occupies 4 bytes.


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
hvijayakumar
Beginner


Joined: 05 Aug 2006
Posts: 7
Topics: 3

PostPosted: Wed Jan 17, 2007 12:40 am    Post subject: Reply with quote

Thanks kolusu..

I have done with the conversion from FOCUS to COBOL. Your answer has helped me a lot.

Thanks.
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