View previous topic :: View next topic |
Author |
Message |
issac1029 Intermediate

Joined: 10 Dec 2005 Posts: 159 Topics: 75
|
Posted: Thu Mar 23, 2006 1:59 am Post subject: INVOKE DFSORT AND associate sysout file? |
|
|
http://www.mvsforums.com/helpboards/viewtopic.php?t=5807&highlight=vllong
Code: | //KOGSTCOB EXEC PGM=KOGSTCOB
//STEPLIB DD DISP=SHR,DSN=AOAJI.TEST.LOAD
// DD DISP=SHR,DSN=SYS1.C104.SCEERUN
//BYHOUR DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SMFINP DD DISP=SHR,DSN=SYS1.ST06.SMFDS2
//SORTOUT DD DISP=(NEW,CATLG,DELETE),
// DSN=AOAJI.TEST.SMFSTATS,
// DCB=(LRECL=1024,BLKSIZE=0,RECFM=VB),
// SPACE=(TRK,(15,15),RLSE),
// UNIT=SYSDA
//SORTWK01 DD UNIT=SYSDA,SPACE=(CYL,(1))
//SORTCNTL DD *
OPTION VLLONG |
1)Can this job invoke a dfsort?By SORTOUT or SORTCNTL?
2)How to associat file with SYSOUT in a cobol pgm KOGSTCOB?
If can't not how to write record directly into a (sysout)file? |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
|
Posted: Thu Mar 23, 2006 6:10 am Post subject: |
|
|
Quote: |
1)Can this job invoke a dfsort?By SORTOUT or SORTCNTL?
|
issac1029,
Huh? KOGSTCOB is not a standard IBM utility/pgm so how can we tell you if it can invoke DFSORT or not?
You can invoke DFSORT within PL/I and COBOL pgms.
Quote: |
)How to associat file with SYSOUT in a cobol pgm KOGSTCOB?
If can't not how to write record directly into a (sysout)file?
|
Sysout is the default output for dfsort. so you don't need any thing special.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
issac1029 Intermediate

Joined: 10 Dec 2005 Posts: 159 Topics: 75
|
Posted: Thu Mar 23, 2006 6:58 am Post subject: |
|
|
kolusu,
'invoke DFSORT within PL/I and COBOL pgms' Do you means I code internal sort with cobol?
A normal pgm can output record from a DD like 'sysout'? |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
issac1029 Intermediate

Joined: 10 Dec 2005 Posts: 159 Topics: 75
|
Posted: Thu Mar 23, 2006 7:20 am Post subject: |
|
|
kolusu,
Sorry,I type wrong words.
I know cobol use 'select yyy assign ddname' then output by 'write yyy',but in the job,the ddname of output file is SORTOUT,can I write like 'select yyy assign sortout' in cobol pgm? |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
|
Posted: Thu Mar 23, 2006 7:58 am Post subject: |
|
|
Quote: |
know cobol use 'select yyy assign ddname' then output by 'write yyy',but in the job,the ddname of output file is SORTOUT,can I write like 'select yyy assign sortout' in cobol pgm?
|
issac1029,
Try it and let me know if you got any problems
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
|
|