View previous topic :: View next topic
|
Author |
Message |
JayC
New User
Joined: 27 Sep 2008 Posts: 70
|
|
|
|
Hi,
My shop has 'SYNCTOOL RELEASE 1.5.3' installed currently, I am able to execute DFSORT commands this is because SYNCSORT accepts DFSORT commands also . Correct ? So, I could say that SYNCTOOL RELEASE 1.5.3
is backward compatible ?
A friend of mine asked me why DFSORT works with SYNCSORT - The above was the answer I gave him, Was I Right ? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Probably not. DFSORT & SYNCSORT are two totally independant products developed and maintained by competing companies.
The fact that there is a lot of similarity between syntax and functionality of the two is pretty much as expected as they are both sort tools. |
|
Back to top |
|
|
JayC
New User
Joined: 27 Sep 2008 Posts: 70
|
|
|
|
but then, why am I able to execute PGM=ICETOOL ?
Code: |
//DFSORT EXEC PGM=ICETOOL
|
ICETOOL is a DFSORT program/utility right ? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Could just be a program alias |
|
Back to top |
|
|
JayC
New User
Joined: 27 Sep 2008 Posts: 70
|
|
|
|
The following is my code :
Code: |
//DFSORT EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//SSMSG DD SYSOUT=*
//DFMSG DD SYSOUT=*
//INDD01 DD DSN=SS6848.D6848.TRYICE.INPUT,DISP=SHR
//OUTDD01 DD DSN=SS6848.D6848.TRYICE.OUTPUT,DISP=MOD,
// SPACE=(CYL,(30,10),RLSE),UNIT=SYSALLDA,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0,DSORG=PS)
//TEMP01 DD DSN=&&TEMP01,
// DISP=(,PASS),DCB=*.OUTDD01,SPACE=(CYL,(5,1),RLSE)
//TEMP02 DD DSN=&&TEMP02,
// DISP=(,PASS),DCB=*.OUTDD01,SPACE=(CYL,(10,5),RLSE)
//TOOLIN DD *
COPY FROM(INDD01) TO(TEMP01) USING(COP1)
SORT FROM(INDD01) TO(TEMP02) USING(SOR1)
COPY FROM(TEMP01) TO(OUTDD01)
COPY FROM(TEMP02) TO(OUTDD01)
/*
//*
//COP1CNTL DD *
SORT FIELDS=COPY,STOPAFT=1
/*
//*
//SOR1CNTL DD *
SORT FIELDS=(1,10,CH,A),SKIPREC=1
/*
|
I had to include :
Code: |
//SSMSG DD SYSOUT=*
|
for the above code to work ? can someone tell me why ? Is it because SYNCSORT will look for //SSMSG , failing to do so it abends ? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Quote: |
I had to include :
//SSMSG DD SYSOUT=*
for the above code to work ? can someone tell me why ? |
Because the program requires use of that DD name. |
|
Back to top |
|
|
JayC
New User
Joined: 27 Sep 2008 Posts: 70
|
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Jayc,
Have you tried this
|
|
Back to top |
|
|
JayC
New User
Joined: 27 Sep 2008 Posts: 70
|
|
|
|
Yes, I did.
//DFSMG DD ... was there , I had to include //SSMSG DD too so that the job would run successfully. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
The correct ddname is DFSMSG, not DFMSG (as shown in your job) or DFSMG (as shown in your post). Syncsort and DFSORT both recognize DFSMSG and SSMSG. Neither recognizes DFMSG or DFSMG. |
|
Back to top |
|
|
JayC
New User
Joined: 27 Sep 2008 Posts: 70
|
|
|
|
Thanks yrank . My mistake. Got it now. |
|
Back to top |
|
|
JayC
New User
Joined: 27 Sep 2008 Posts: 70
|
|
|
|
Frank . Thank you |
|
Back to top |
|
|
|