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 

INVOKE DFSORT AND associate sysout file?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
issac1029
Intermediate


Joined: 10 Dec 2005
Posts: 159
Topics: 75

PostPosted: Thu Mar 23, 2006 1:59 am    Post subject: INVOKE DFSORT AND associate sysout file? Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Thu Mar 23, 2006 6:10 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
issac1029
Intermediate


Joined: 10 Dec 2005
Posts: 159
Topics: 75

PostPosted: Thu Mar 23, 2006 6:58 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Thu Mar 23, 2006 7:06 am    Post subject: Reply with quote

Quote:

kolusu,

'invoke DFSORT within PL/I and COBOL pgms' Do you means I code internal sort with cobol?


issac1029,

Check this link for a detailed explanation of invoking DFSORT within a cobol program

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3PG10/1.12?DT=20020923143836

Quote:

A normal pgm can output record from a DD like 'sysout'?



I really don't understand your question.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
issac1029
Intermediate


Joined: 10 Dec 2005
Posts: 159
Topics: 75

PostPosted: Thu Mar 23, 2006 7:20 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Thu Mar 23, 2006 7:58 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities 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