|
|
| Author |
Message |
sarveshjoshi1986
New User
Joined: 23 Mar 2008 Posts: 1 Location: mumbai
|
|
|
|
Hi,
Can we use the LISTCAT for two files and having OR condition for their return code. For example:
LISTC ENTRIES (input_file_name_1)
IF LASTCC = 4 THEN DO
SET MAXCC = 8
END
LISTC ENTRIES (input_file_name_2)
IF LASTCC = 4 THEN DO
SET MAXCC = 8
END
============================================
Now if we have input_file_name_1 and no input_file_name_2 then MAXCC will be equal to 8. If we dont have any file then also there will be MAXCC=08. Now I want to have MAXCC equal to zero even though we are having one file only. Can this be a possible case?
Please reply |
|
| Back to top |
|
 |
References
|
Posted: Mon May 05, 2008 12:06 pm Post subject: Re: Can we use LISTCAT for two files simoultaneously using cond. |
 |
|
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 2560 Location: italy
|
|
|
|
I do not know the reason for such a request ...
just for the fun of solving a puzzle
| Code: |
listc dataset_one
if lastcc > 0 then do
listc dataset_two
if lastcc = 0 then do
set maxcc = 0
end
end
|
just the logic, it' s up to You to use the right IDCAM syntax |
|
| Back to top |
|
 |
|
|