Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Assign values in a loop

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: pls..anyone hepl in my problem...
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: 2360
Location: Israel

PostPosted: Wed Dec 05, 2007 7:13 pm    Post subject:
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    Post subject:
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    Post subject: Reply to: Assign values in a loop
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: 8593
Location: Back in jolly old England

PostPosted: Fri Jan 11, 2008 8:03 pm    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Mon Jan 21, 2008 12:27 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Overlaying one set of charater values... Kevin Lindsley SYNCSORT 7 Sat Nov 05, 2016 3:21 am
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us