Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Float variable declaration in easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
rarvins

New User


Joined: 24 Jan 2007
Posts: 59
Location: Texas

PostPosted: Mon Mar 19, 2007 3:28 pm    Post subject: Float variable declaration in easytrieve
Reply with quote

Hi,
I am new to easytrieve and would like to know the declaraion for Float
Say for example:
we give A for characters, P for packed decimal, B for Binary etc.
Similarly what would it be for floating point variables...?

Cheers,
Rarvins
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Mon Mar 19, 2007 3:37 pm    Post subject:
Reply with quote

Hi there,

We used N for them

Code:
VAR-RATE            004  N 3
Back to top
View user's profile Send private message
rarvins

New User


Joined: 24 Jan 2007
Posts: 59
Location: Texas

PostPosted: Mon Mar 19, 2007 3:44 pm    Post subject: Re:Float declaration
Reply with quote

Hi,

I shall try out N, but I just had a basic doubt.I thot that N was only for integers.But since a float value can contain decimal points as well, will ir work....? Correct me if I am wrong

Cheers,
Rarvins
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Mon Mar 19, 2007 4:01 pm    Post subject:
Reply with quote

Hi rarvins,

Yeap it will work
As i specify VAR-RATE will take 7 bytes 4 befor decimal & 3 after decimal
its like DECIMAL(7,3).
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Mon Mar 19, 2007 4:48 pm    Post subject:
Reply with quote

Just what is your definition of "float"?
The N is packed decimal.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us