Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Can we use LISTCAT for two files simoultaneously using cond.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM
Author Message
sarveshjoshi1986

New User


Joined: 23 Mar 2008
Posts: 1
Location: mumbai

PostPosted: Mon May 05, 2008 12:06 pm    Post subject: Can we use LISTCAT for two files simoultaneously using cond.
Reply with quote

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
View user's profile Send private message
References
PostPosted: Mon May 05, 2008 12:06 pm    Post subject: Re: Can we use LISTCAT for two files simoultaneously using cond. Reply with quote

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 2560
Location: italy

PostPosted: Mon May 05, 2008 12:14 pm    Post subject: Reply to: Can we use LISTCAT for two files simoultaneously u
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM All times are GMT + 6 Hours
Page 1 of 1