MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Maximum number of Datasets which can be concatenated!

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
jimmy_augustine
Beginner


Joined: 23 Jun 2004
Posts: 32
Topics: 13

PostPosted: Thu Jun 24, 2004 5:52 am    Post subject: Maximum number of Datasets which can be concatenated! Reply with quote

Friends,
Is there any limit for the number of data sets that can be concatenated? If it is so,could any one tell me what is the maximum number of datasets that can be concatenated in a single step in a JOB? Any help would be appreciated.
Thanks
Jimmy
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Jun 24, 2004 6:01 am    Post subject: Reply with quote

jimmy_augustine,

Check the 5th post in this topic

http://www.mvsforums.com/helpboards/viewtopic.php?t=2256&highlight=tiot

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jimmy_augustine
Beginner


Joined: 23 Jun 2004
Posts: 32
Topics: 13

PostPosted: Thu Jun 24, 2004 6:14 am    Post subject: Reply with quote

Kolusu,
Thanks for the quick answer. Though in that it is mentioned that the max number of DD statements as 3273, will it be applicable to data set concatenation? I know that even if we want to concatenate data sets we need to code DD statements.

Thanks
Jimmy
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Jun 24, 2004 7:13 am    Post subject: Reply with quote

jimmy_augustine,

The limit of 3273 is applicable to the concatenation also. However sometimes it also depends on the pgm that is reading the concatenated datasets. For ex: ISRSUPC (3.14 or 3.15- Search-For Utility ) can only read upto 4 datasets.

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jimmy_augustine
Beginner


Joined: 23 Jun 2004
Posts: 32
Topics: 13

PostPosted: Thu Jun 24, 2004 7:34 am    Post subject: Reply with quote

kolusu
You got it right.
And that is what I exactly want. I am using this 3.14 utility to scan for a set of programs. In my installation, we are doing a house keeping project now and I need to identify all the JCl members executing these set of programs in all the JCL PDS.
So if this ISRSUPC could scan only a max of 4 concatenated data set, I am stuck again. Is there any other utility I can use?
It would be really great if I get some thing like that.
Thanks in advance
Jimmy
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Jun 24, 2004 7:59 am    Post subject: Reply with quote

Jimmy Augustine,

Why don't you split the job into different steps. Each step will have 4 datasets as a concatenation. And use MOD for the output scan results, so that you can have all the results in one single dataset. Alternatively, If your shop has file-aid then you can use it.

Ex:

Code:

//STEP0100 EXEC PGM=ISRSUPC,                                           *
//            PARM=(SRCHCMP,XREF,                                           
//            'ANYC')                                                   
//NEWDD   DD DSN=DATASET TO BE SEARCHED 1,
//           DISP=SHR                                                   
//        DD DSN=DATASET TO BE SEARCHED 2,     
//           DISP=SHR
//        DD DSN=DATASET TO BE SEARCHED 3,     
//           DISP=SHR
//        DD DSN=DATASET TO BE SEARCHED 4,     
//           DISP=SHR
//OUTDD  DD DSN=OUTPUT SCAN RESULT DATASET,
//          DISP=(MOD,CATLG,DELETE),
//          UNIT=SYSDA,
//          SPACE=(CYL,(25,25,RLSE)         
//SYSIN  DD *                                                           
SRCHFOR  'NX005'                                                       
SRCHFOR  'OL430'                                                       
/*   
//STEP0200 EXEC PGM=ISRSUPC,                                           *
//            PARM=(SRCHCMP,XREF,                                           
//            'ANYC')                                                   
//NEWDD   DD DSN=DATASET TO BE SEARCHED 5,
//           DISP=SHR                                                   
//        DD DSN=DATASET TO BE SEARCHED 6,     
//           DISP=SHR
//        DD DSN=DATASET TO BE SEARCHED 7,     
//           DISP=SHR
//        DD DSN=DATASET TO BE SEARCHED 8,     
//           DISP=SHR
//OUTDD  DD DSN=OUTPUT SCAN RESULT DATASET,
//          DISP=(MOD,CATLG,DELETE),
//          UNIT=SYSDA,
//          SPACE=(CYL,(25,25,RLSE)         
//SYSIN  DD *                                                           
SRCHFOR  'NX005'                                                       
SRCHFOR  'OL430'                                                       
/*   
....


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jimmy_augustine
Beginner


Joined: 23 Jun 2004
Posts: 32
Topics: 13

PostPosted: Thu Jun 24, 2004 8:13 am    Post subject: Reply with quote

kolusu,
Thanks and the JCL above is a solution, but I need to write an additional program to generate a JCL like above, because manually coding this jcl is going to be a tedious task. However could you please tell me how can I use FILE-AID for this? we have FILE-AID installed in our shop.
Thanks
Jimmy
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Jun 24, 2004 9:05 am    Post subject: Reply with quote

Jimmy Augustine,

The following JCL will give you the desired results.

Code:

//STEP0100 EXEC PGM=FILEAID,REGION=4M
//*                 
//DD01     DD DSN=DATASET TO BE SEARCHED 1,
//            DISP=SHR                     
//         DD DSN=DATASET TO BE SEARCHED 2,
//            DISP=SHR                     
//         DD DSN=DATASET TO BE SEARCHED 3,
//            DISP=SHR                     
....
//         DD DSN=DATASET TO BE SEARCHED N,
//            DISP=SHR         
//SYSLIST  DD DSN=OUTPUT SCAN RESULT DATASET,
//            DISP=(NEW,CATLG,DELETE),
//            UNIT=SYSDA,
//            SPACE=(CYL,(25,25,RLSE)                       
//SYSPRINT DD SYSOUT=*                     
//SYSIN    DD *                             
$$DD01 LIST IF=(1,0,C'NX005'),             
            OR=(1,0,C'OL430')             
/* 


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jimmy_augustine
Beginner


Joined: 23 Jun 2004
Posts: 32
Topics: 13

PostPosted: Thu Jun 24, 2004 9:18 am    Post subject: Reply with quote

kolusu,
I tried the following for searching multiple datasets and i am successful in concatenating up to 45 datasets. But it seems to be very difficuly because if the PDS doesnt not contain any member, it abends. And it is abending due to some other reason as well but now I need to check what is the other reason. How ever for testing purpose, I made sure that all the 45 PDS are containing at least one member and that test ran fine. but when I included more members it abended again.

//SEARCH EXEC PGM=ISRSUPC,
// PARM=(SRCHCMP,XREF,
// 'ANYC')

I am still working on this issue:(
Now regarding that FILE-AID JCL, I think is not possible to specify the position of the search string as the position of the EXEC PGM=NX005' can be vary by 1 or 2 chars. Sad

Thanks a million Kolusu.
Jimmy
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Jun 24, 2004 9:27 am    Post subject: Reply with quote

Jimmy Augustine,

Even though you are able to concatenate 45 datasets for ISRSUPC, You are not guaranteed to get the correct results. So I suggest you use FILE-AID JCL provided above.

You don't have to worry about the length,position of the search string.

Code:

IF=(1,0,C'NX005')


By coding 1,0 we do not worry about the length of the file. It implies start from pos1 and check till the end of the record for the specified characters. By coding length of zero file-aid scans the entire record. I specfied 1,0,c'nx005' which means file-aid will search from pos1 for the max length for the characters 'nx005'.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jimmy_augustine
Beginner


Joined: 23 Jun 2004
Posts: 32
Topics: 13

PostPosted: Thu Jun 24, 2004 12:52 pm    Post subject: Reply with quote

Kolusu
I tried with FILE-AID and that is working:) But again I found out that that the maximum data sets I would be able to concatenate is 91. I guess this is installation dependent. More over 91 was the max data set I was able to concatenate with ISRSUPC. As you mentioned, the out put of ISRSUPC is not reliable when we do a concatenation!! that is strange anyway!!.
Thanks a lot
Jimmy
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Jun 24, 2004 1:17 pm    Post subject: Reply with quote

Jimmy Augustine,

Quote:

I tried with FILE-AID and that is working:) But again I found out that that the maximum data sets I would be able to concatenate is 91.


Try increasing the Region parm in the JCL

Code:

//STEP0100 EXEC PGM=FILEAID,REGION=16M


Coding REGION=0M will also work unless you work in a shop where usage of region=0M is banned

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
shiv_swami
Beginner


Joined: 29 Nov 2003
Posts: 68
Topics: 14

PostPosted: Tue Feb 22, 2005 5:08 pm    Post subject: File Aid Search- Concatenated DSN names in the output list Reply with quote

Kolusu,

Can we get the name/sequence # (As we get CONCAT# ISRSUPC search )of the concatenated dataset when FILEAID search is done with multiple inputs libraries ?
_________________
Regards,
Shivprakash
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group