Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
rarvins

New User

Joined: 24 Jan 2007
Posts: 59
Location: Texas

 Posted: Mon Mar 19, 2007 3:28 pm    Post subject: Float variable declaration in easytrieve 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

guptae

Moderator

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

Posted: Mon Mar 19, 2007 3:37 pm    Post subject:

Hi there,

We used N for them

 Code: VAR-RATE            004  N 3
rarvins

New User

Joined: 24 Jan 2007
Posts: 59
Location: Texas

 Posted: Mon Mar 19, 2007 3:44 pm    Post subject: Re:Float declaration 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
guptae

Moderator

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

 Posted: Mon Mar 19, 2007 4:01 pm    Post subject: 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).
William Thompson

Global Moderator

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

 Posted: Mon Mar 19, 2007 4:48 pm    Post subject: Just what is your definition of "float"? The N is packed decimal.
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm Move from Comp3 variable to Edited Va... Revathy.nair0485 COBOL Programming 7 Fri Nov 03, 2017 3:30 pm Can a alphanumeric data be moved to a... nico_neoz COBOL Programming 10 Mon Oct 30, 2017 8:28 am Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

 © 2003-2017 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us