IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Assign values in a loop


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Khwairakpam Raju Singh

New User


Joined: 05 Dec 2007
Posts: 29
Location: Bangalore

PostPosted: Wed Dec 05, 2007 5:03 pm
Reply with quote

In REXX: I am using MEM1,MEM2,...MEM20 in panel as fiels name. And in program i am trying to assign values to those field by using do loop. The problem is that values are not assigning to them...here is the code:

ODSN=Dataset_name

Y = OUTTRAP('VAR.')
name="'"ODSN"'"
"LISTDS" NAME "MEMBERS"
DO I = 1 TO 20
S=MEM||I
S=VAR.I
END
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Dec 05, 2007 7:13 pm
Reply with quote

Take a look at the VALUE built-in function, or at the INTERPRET instruction.

O.
Back to top
View user's profile Send private message
Khwairakpam Raju Singh

New User


Joined: 05 Dec 2007
Posts: 29
Location: Bangalore

PostPosted: Wed Dec 05, 2007 7:38 pm
Reply with quote

Thank u very much....i got it using INTERPRET INSTRUCTION...THANK YOU....
Back to top
View user's profile Send private message
Swati Surana

New User


Joined: 11 Jan 2008
Posts: 7
Location: India

PostPosted: Fri Jan 11, 2008 5:39 pm
Reply with quote

I am also using MEM1,MEM2,...MEM20 in panel as fiels name. And in program i am trying to use values given in those fields.The problem is that i am not able to retrieve the values.Here is the code

DO I = 1 TO 20
IF MEM||I ¬= ' ' THEN
DO
VAR = DSN||I
SAY VAR
"DEL" VAR
END
END
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Jan 11, 2008 8:03 pm
Reply with quote

Khwairakpam Raju Singh wrote:
Thank u very much....i got it using INTERPRET INSTRUCTION...THANK YOU....


Enough said ?
Back to top
View user's profile Send private message
Swati Surana

New User


Joined: 11 Jan 2008
Posts: 7
Location: India

PostPosted: Mon Jan 21, 2008 11:11 am
Reply with quote

Can anybody pls suggest me something asap
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Jan 21, 2008 12:27 pm
Reply with quote

Have you read this thread carefully?

O.
Back to top
View user's profile Send private message
Swati Surana

New User


Joined: 11 Jan 2008
Posts: 7
Location: India

PostPosted: Thu Jan 24, 2008 3:07 pm
Reply with quote

Thanks a lot .. got it using VALUE function
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
This topic is locked: you cannot edit posts or make replies. REXX - Do - Not able to LOOP CLIST & REXX 10
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
Search our Forums:

Back to Top