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 

Can we give PDS name in sortin?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Fri Oct 12, 2007 7:18 am    Post subject: Can we give PDS name in sortin? Reply with quote

Hi all,

Can we give a PDS name without specifying the members as input in SORTIN statement?

Following is illustration of my requirement:

Input PDS : AAA.PDS1
members:
1. mem1
2. mem2
.....
15. mem15

Can we concatenate the contents of all the members in a single flat file using sort?

I tried the below JCL:

Code:


   //TEST01     EXEC PGM=SORT                             
//*                                                     
//SORTIN     DD DSN=AAA.PDS1,DISP=SHR
//SORTOUT    DD SYSOUT=*                               
//SYSOUT     DD SYSOUT=*                               
//SYSIN      DD *                                       
  SORT FIELDS=COPY                                     
/*                                                     



But it failed and issued the following error message:

Code:

WER108I  SORTIN   : RECFM=FB   ; LRECL=    80; BLKSIZE= 27920 
WER180A  SORTIN   MEMBER NOT SPECIFIED                         
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000                 
WER449I  SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE                 



Is there any way out that I can concatenate the contents of all the members in the PDS without specifying the members in the JCL?

Thanks much.
_________________
Vivek G
--------------------------------------
A dream is just a dream. A goal is a dream with a plan and a deadline. (Harvey Mackay)
Back to top
View user's profile Send private message
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Fri Oct 12, 2007 7:27 am    Post subject: Reply with quote

Hi all,

Disregard my previous topic.

I changed my search criteria to "concatenate pds" and it fetched me the following link with a fileaid solution:

http://www.mvsforums.com/helpboards/viewtopic.php?t=2289&highlight=concatenate+pds

Just curious.. Any possiblity to do the same thing in SORT?
_________________
Vivek G
--------------------------------------
A dream is just a dream. A goal is a dream with a plan and a deadline. (Harvey Mackay)
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri Oct 12, 2007 1:51 pm    Post subject: Reply with quote

dfsort does not read a pds/pdse directory - yet..

you can also use iebptpch. in the utillities forum, frank created a sticky with links to utility manuals. check out the one with ieb... ieh.... as a title.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Fri Oct 12, 2007 2:59 pm    Post subject: Reply with quote

Quote:
dfsort does not read a pds/pdse directory - yet..


The OP is using Syncsort, so I didn't respond. But since you brought DFSORT into it ...

Using SORTIN for the entire pds will not work. However, specifying each pds(member) in a concatenated SORTIN will work:

Code:

//SORTIN     DD DSN=AAA.PDS1(MEM1),DISP=SHR
//           DD DSN=AAA.PDS1(MEM2),DISP=SHR
...

_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities 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