View previous topic :: View next topic
|
Author |
Message |
hikaps14
Active User
Joined: 02 Sep 2005 Posts: 189 Location: Noida
|
|
|
|
Hi,
I just wanted to initialize an empty file.
I tried using :
Code: |
//STEP0010 EXEC PGM=SORT,COND=(0,NE)
//SORTIN DD DUMMY
//SORTOUT DD DSN=&&DUMMY1,
// DISP=(NEW,PASS),
// UNIT=SYSDA,SPACE=(TRK,(1,1),RLSE),
// RECFM=FB,LRECL=80
//SYSIN DD DUMMY
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
|
I received the following error message:
ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 23:52 ON THU AUG
ICE010A 0 NO SORT OR MERGE CONTROL STATEMENT
ICE751I 0 C5-K90007 C6-K90007 E7-K11698
ICE052I 3 END OF DFSORT
can't we use DUMMY in sysin ?
-Kapil. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Kapil,
Quote: |
can't we use DUMMY in sysin ? |
SORT expects you to provide some control statements in SYSIN. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
why not?
Code: |
//DELLOAD EXEC PGM=IEFBR14
//LOADMOD DD DSN=&&DUMM1,
// DISP=(NEW,PASS),
// UNIT=SYSDA,SPACE=(TRK,(1,1),RLSE),
// RECFM=FB,LRECL=80
|
|
|
Back to top |
|
|
hikaps14
Active User
Joined: 02 Sep 2005 Posts: 189 Location: Noida
|
|
|
|
SORT expects you to provide some control statements in SYSIN.
ya, I understand that but can't we code a dummy sysin statement.
I browsed thru previous threads on this forum and found a similar statement being used.
So why am I not able to use it.
Thanks,
-Kapil. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Kapil,
Quote: |
ya, I understand that but can't we code a dummy sysin statement. |
What does DUMMY stand for? Could you let us know.
Quote: |
I browsed thru previous threads on this forum and found a similar statement being used. |
Please post the link. |
|
Back to top |
|
|
hikaps14
Active User
Joined: 02 Sep 2005 Posts: 189 Location: Noida
|
|
|
|
hi,
Please have a look at this:
ibmmainframes.com/viewtopic.php?t=9683&highlight=dummy
Dummy:
lets take an example of a prog A which uses 2 input file and 1 output file.
Now lets assume that out of 2 inputs 1st file always has records and the 2nd file may or may not have records.
later on if the requirements change and now on we do not require the 2nd input file.
If we remove the DD statement for 2nd I/P file, then we will have to modify the code accordingly.
Else
We will have an abend
So, here the dummy statement plays its role.
If we code DUMMY statement on the 2nd I/P file then the original code will work fine without requiring any modifications.
Thanks,
-Kapil. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
SORT expects you to provide some control statements in SYSIN.
ya, I understand that but can't we code a dummy sysin statement. |
No. DFSORT needs you to tell it whether you want to do a SORT, MERGE or COPY.
You could use //SYSIN DD DUMMY with IEBGENER (or DFSORT's ICEGENER) which knows you want to do a COPY. But you'll need to specify the RECFM and LRECL for the SYSUT1 DD (input):
Code: |
//S1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DUMMY,RECFM=FB,LRECL=80
//SYSUT2 DD DSN=&&DUMMY2,
// DISP=(NEW,PASS),
// UNIT=SYSDA,SPACE=(TRK,(1,1),RLSE)
//SYSIN DD DUMMY
|
|
|
Back to top |
|
|
|