Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Is there any Random function in CLIST

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
nickyboy

New User


Joined: 26 Aug 2005
Posts: 18

PostPosted: Thu Nov 10, 2005 5:45 pm    Post subject: Is there any Random function in CLIST
Reply with quote

Hi all..

Is there any Random function in CLIST..
My requirement is that, by giving the length of the numeric field..I should get a random numeric value of that length...

Thanks..
Nick
Back to top
View user's profile Send private message
References
PostPosted: Thu Nov 10, 2005 5:45 pm    Post subject: Re: Is there any Random function in CLIST Reply with quote

dietocode

New User


Joined: 14 Nov 2005
Posts: 2
Location: Bangalore-India

PostPosted: Mon Nov 14, 2005 9:29 am    Post subject: Random function.
Reply with quote

Hi nicky,
Yes there is a RANDOM function. Please look at the details below.

RANDOM(max,min, max ,seed)
returns a quasi-random nonnegative whole number in the range min to max
inclusive. If you specify max or min or both, max minus min cannot exceed 100000.
The min and max default to 0 and 999, respectively. To start a repeatable sequence
of results, use a specific seed as the third argument, as described in Note 1. This
seed must be a positive whole number ranging from 0 to 999999999.
Here are some examples:
RANDOM() -> 305
RANDOM(5,8) -> 7
RANDOM(2) -> 0 /* 0 to 2 */
RANDOM(,,1983) -> 123 /* reproducible */
Back to top
View user's profile Send private message
nickyboy

New User


Joined: 26 Aug 2005
Posts: 18

PostPosted: Mon Nov 14, 2005 11:55 am    Post subject: Re: Is there any Random function in CLIST
Reply with quote

Hi dietocode,

Thanks for the reply..
I think the function you mentioned are for REXX only..
I am looking for something silmilar in CLIST.

Thanks,
Nick.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1