View previous topic :: View next topic
|
Author |
Message |
softwareengineer
New User
Joined: 24 Aug 2005 Posts: 24 Location: Hyderabad
|
|
|
|
Hi,
I donno REXX much. But I need a REXX prg for below logic:
1) add two numeric values( let say A & B) of pic 9(23) each & to store the field in another variable ( let say C pic 9(23))
2) Divide the variable 'C' value with 11 and to store the last digit of remainder in one variable (D)?
Please help me giving this logic.... atleast the logic 1.....
It wud be great if u cud entire logic 1 & 2.. and how to call/use this REXX module in my cobol program. |
|
Back to top |
|
|
manihcl85 Warnings : 1 New User
Joined: 11 Jan 2007 Posts: 52 Location: chennai
|
|
|
|
Actually variable type is not neccesary in rexx u can directly use as below.
Code: |
/*REXX*/
VARA
VARB
VARC = VARA + VARB
SAY VARC
|
if i am wrong please give me the detailed input that where u will get a and b whether from file or run time or from a file and what u want to do with output going to display or write in a file.
Regards,
Mani. |
|
Back to top |
|
|
|