updating a record twice

IBM's Command List programming language & Restructured Extended Executor

updating a record twice

Postby senthil » Tue Jun 30, 2009 9:03 am

hi all,
My objective is to update a pds. By doing so i have to update some particular records. And sometimes i have to update a single record twice.
for example
 IF CUST_ID  ^= '  ' THEN

now i have to change CUST_ID to CUSTOMER_ID and remove the ^ symbol in the particular record.
i have seperate logic to change CUST_ID to CUSTOMER_ID which will change wherever CUST_ID is present
and to change ^ symbol.
But when these two are in a single record (the above code) any one change is happening.
that is if i have converting CUST_ID to CUSTOMER_ID logic after ^ changing logic, only CUST_ID is being updated and vice versa.
can anyone help me in updating the single record twice..........
Senthil Kumar
Posts: 14
Joined: Mon Jun 01, 2009 3:23 pm
Has thanked: 0 time
Been thanked: 0 time

Re: updating a record twice


Re: updating a record twice

Postby dick scherrer » Tue Jun 30, 2009 9:22 am


Suggest you post the bit of code that is failing.

What happens when you run a trace?
Hope this helps,
User avatar
dick scherrer
Global moderator
Posts: 6308
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 90 times

Return to CLIST & REXX


  • Related topics
    Last post