With a STC your msgclass is defined in JES. Depending on your z/OS level you can start your STC as follows
S LOGWDSJ,MSGCLASS=?? Change ?? to the class that allows the Output to be held on JES or at least not printed/purged. Then you can see what is going on. When you use SYSOUT=* in an STC it defaults the class to what is defined in JES for Started Tasks. You can say SYSOUT=X (for example) if X is your Held class in your STC JCL to hard code the correct class. You need to review the JES2 USERs guide to understand how the different elements of JCL are coded. An STC gets its JCL typically from a JES PROCLIB. The Security (USER) is handled through your Security product. You can see what user is assigned when the task is started. Look in SYSLOG. Syslog should also show you any security messages for your STC. See if you are getting any when the GDG allocation occurs. A JCL gets its security from the submitting user's security. You need to work with your security group to make sure the STC has the appropriate security for running in your environment. In RACF this is the STARTED Table (IIRC). If you are not the sys prog, you will need to contact them to determine correct SYSOUT Class to use for your process. Lizette > > Hi all > > I submit the following JCL > > > //LOGWDSJ JOB CLASS=A > //STEP1 EXEC PGM=IEBGENER > //SYSUT1 DD DUMMY,DCB=(LRECL=133,RECFM=FB) > //SYSUT2 DD DISP=(,CATLG,DELETE),RETPD=366,VOL=(,,,1), > // DSN=BKTST.SYSLOG.PLEXH1.BH01.WEEKLY(+1), > // UNIT=VTAPE,SPACE=(CYL,(120,50)),DATACLAS=DCCOMP, > // DCB=(LRECL=133,RECFM=FB) > //SYSPRINT DD SYSOUT=* > //SYSIN DD DUMMY > > > The JCL allocated the GDG BKTST.SYSLOG.PLEXH1.BH01.WEEKLY(+1) > successfully. > > > But I start the following cataloged procedure > > > //LOGWDS PROC > //STEP1 EXEC PGM=IEBGENER > //SYSUT1 DD DUMMY,DCB=(LRECL=133,RECFM=FB) > //SYSUT2 DD DISP=(,CATLG,DELETE),RETPD=366,VOL=(,,,1), > // DSN=BKTST.SYSLOG.PLEXH1.BH01.WEEKLY(+1), > // UNIT=VTAPE,SPACE=(CYL,(120,50)),DATACLAS=DCCOMP, > // DCB=(LRECL=133,RECFM=FB) > //SYSPRINT DD SYSOUT=* > //SYSIN DD DUMMY > > > The cataloged procedure cann't allocate the GDG > BKTST.SYSLOG.PLEXH1.BH01.WEEKLY(+1) ,but the return code is zero. > > > The JCL is almost similar as the cataloged procedure. > > My questions: > > 1.I wonder why the cataloged procedure cann't allocate the GDG but the > JCL can do it. > > 2.There is less messages in SDSF.H for the cataloged procedure > output,How can I get more messages for it. > > 3.What is the differences between starting a cataloged procedure and > submittinga JCL. > > Any Suggestions are highly appreciated! > > Thanks a lot! > > Best Regards, > > Jason Cai > > > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html