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 

Problem while using INSTREAM PROCEDURE

 
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
mrinalsolanki
Beginner


Joined: 02 May 2006
Posts: 56
Topics: 16

PostPosted: Mon Nov 13, 2006 7:23 am    Post subject: Problem while using INSTREAM PROCEDURE Reply with quote

hi all,

I am trying to remove the duplicates present in the dataset sortin using instream procedure,but not being able to do so.The code i am using is mentioned below:

please help me to get out of this

Code:
//MYPROC   PROC                                 
//STEP0100 EXEC PGM=SORT                         
//SYSOUT   DD SYSOUT=*                           
//SORTIN   DD DSN=PRACTICE.SORTIN(SORTIN),
//            DISP=SHR                           
//SORTOUT  DD DSN=PRACTICE.JUNK6,DISP=SHR
//SYSIN    DD *                                 
       SORT FIELDS=(1,10,CH,A)                   
       SUM FIELDS=NONE                           
/*                                               
//   PEND                                       
//*                                             
//STEP1    EXEC MYPROC                           
 


thanks

Mrinal
Back to top
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Mon Nov 13, 2006 7:40 am    Post subject: Reply with quote

Mrinal,

You cannot have 'DD *' in a proc.

Regards,
Diba.
Back to top
View user's profile Send private message Send e-mail
mrinalsolanki
Beginner


Joined: 02 May 2006
Posts: 56
Topics: 16

PostPosted: Mon Nov 13, 2006 8:08 am    Post subject: Reply with quote

Dibakar,

So instead of DD * what should i use?
Can you please give me the exact syntax for this line?
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Mon Nov 13, 2006 8:12 am    Post subject: Reply with quote

Code:

//MYPROC   PROC                                 
//STEP0100 EXEC PGM=SORT                         
//SYSOUT   DD SYSOUT=*                           
//SORTIN   DD DSN=PRACTICE.SORTIN(SORTIN),
//            DISP=SHR                           
//SORTOUT  DD DSN=PRACTICE.JUNK6,DISP=SHR                                                 
//   PEND                                       
//*                                             
//STEP1    EXEC MYPROC                           
//SYSIN    DD *                                 
       SORT FIELDS=(1,10,CH,A)                   
       SUM FIELDS=NONE                           
/*


or, more properly:

Code:

//MYPROC   PROC                                 
//STEP0100 EXEC PGM=SORT                         
//SYSOUT   DD SYSOUT=*                           
//SORTIN   DD DSN=PRACTICE.SORTIN(SORTIN),
//            DISP=SHR                           
//SORTOUT  DD DSN=PRACTICE.JUNK6,DISP=SHR     
//SYSIN    DD DSN=SOME.PDS(MEMBER),DISP=SHR                                           
//   PEND                                       
//*                                             
//STEP1    EXEC MYPROC


Last edited by superk on Mon Nov 13, 2006 8:27 am; edited 1 time in total
Back to top
View user's profile Send private message
mrinalsolanki
Beginner


Joined: 02 May 2006
Posts: 56
Topics: 16

PostPosted: Mon Nov 13, 2006 8:26 am    Post subject: Reply with quote

Thanks ,

The code is working fine now.
Back to top
View user's profile Send private message
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