I had to change the brackets to x'AD' X'BD', the same as I use for java.
The for i = 1, count do a[i]  = i * i end statement fixed the problem.

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Tom Brennan
Sent: Friday, October 24, 2014 3:45 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: [ANN] Lua4z: the Lua programming language on z/OS, with batteries

This suggestion is probably unrelated to the actual issue, but I see the odd 
characters ÝC¨ in your note, which I think should display as square brackets.  
If your terminal emulator is currently set to use code page
37 (or similar), you might try code page 1047.

Barkow, Eileen wrote:
> I keep getting this error both in MVS and UNIX.
> 
> LUA: //'xcics.lua4z.samplib(cpu)':4: attempt to perform arithmetic on field 
> '? 
>   ' (a nil value)                                                             
>    
>  stack traceback:                                                             
>   
>          //'xcics.lua4z.samplib(cpu)':4: in main chunk                        
>   
>          ÝC¨: ?                                                               
>   
>  ***                                                                          
>   

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to