IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

What is the usage of the statement "statrec=syncsort&qu


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kbmkris

Active User


Joined: 24 Jun 2006
Posts: 101

PostPosted: Fri Oct 27, 2006 5:00 pm
Reply with quote

what is the usage of the statement "statrec=syncsort" in the sort program?

Thanks
Bala
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Fri Oct 27, 2006 5:06 pm
Reply with quote

Hi Bala,

Would u please more information on that I have never seen statrec in sort.

Please paste ur jcl
Back to top
View user's profile Send private message
kbmkris

Active User


Joined: 24 Jun 2006
Posts: 101

PostPosted: Fri Oct 27, 2006 5:12 pm
Reply with quote

Hi guptae,

see the jcl below, the dataset specified in the sortparm contains just one line "statrec=syncsort". i have commented out the line and ran the program, it's running fine. i want to know why they have included this statement.

Code:
//STEP1    EXEC PGM=SORT                                     
//SORTPARM DD DSN=HOES.PARMLIB(HOIS005),DISP=SHR           
//SORTIN   DD DSN=TST.LEXD.MM27051,DISP=SHR                   
//SORTOF1  DD DSN=TST.K4CCBK1.MM31751,DISP=(,CATLG,DELETE), 
//            UNIT=SYSDA,SPACE=(27998,(300,30),RLSE),       
//            DCB=(RECFM=FB,LRECL=69,BLKSIZE=0)             
//SORTOF2  DD DSN=TST.K4CCBK1.MM31752,DISP=(,CATLG,DELETE), 
//            UNIT=SYSDA,SPACE=(27998,(300,30),RLSE),       
//            DCB=(RECFM=FB,LRECL=69,BLKSIZE=0)             
//SORTOF3  DD DSN=TST.K4CCBK1.MM31753,DISP=(,CATLG,DELETE), 
//            UNIT=SYSDA,SPACE=(27998,(300,30),RLSE),       
//            DCB=(RECFM=FB,LRECL=69,BLKSIZE=0)             
//SORTOF4  DD DSN=TST.K4CCBK1.MM31754,DISP=(,CATLG,DELETE), 
//            UNIT=SYSDA,SPACE=(27998,(300,30),RLSE),       
//            DCB=(RECFM=FB,LRECL=69,BLKSIZE=0)             
//SORTOF5  DD DSN=TST.K4CCBK1.MM31755,DISP=(,CATLG,DELETE), 
//            UNIT=SYSDA,SPACE=(27998,(300,30),RLSE),       
//            DCB=(RECFM=FB,LRECL=69,BLKSIZE=0)             
//SORTOF6  DD DSN=TST.K4CCBK1.MM31756,DISP=(,CATLG,DELETE), 
//            UNIT=SYSDA,SPACE=(27998,(300,30),RLSE),       
//            DCB=(RECFM=FB,LRECL=69,BLKSIZE=0)             
//SYSOUT   DD SYSOUT=*                                       
//SYSIN    DD *                                             
 SORT FIELDS=COPY                                           
  OUTFIL FILES=1,INCLUDE=(1,4,CH,EQ,C'0609')   
  OUTFIL FILES=2,INCLUDE=(1,4,CH,EQ,C'0608')   
  OUTFIL FILES=3,INCLUDE=(1,4,CH,EQ,C'0607')   
  OUTFIL FILES=4,INCLUDE=(1,4,CH,EQ,C'0606')   
  OUTFIL FILES=5,INCLUDE=(1,4,CH,EQ,C'0605')   
  OUTFIL FILES=6,INCLUDE=(1,4,CH,EQ,C'0604')   
 /*                                           
 //                                           

Thanks,
bala
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
No new posts Newbie Stuck on "Duplicate Datas... TSO/ISPF 5
No new posts STEM usage in REXX CLIST & REXX 14
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
Search our Forums:

Back to Top