View previous topic :: View next topic
|
Author |
Message |
hdc123
New User
Joined: 15 May 2006 Posts: 7
|
|
|
|
Quote: |
hi i am having problem in file tailoring.
I want to substitute mail id.
My code is as below-
|
Code: |
//EMAILJOB (001T,3301),'&USER',CLASS=Q,MSGCLASS=X,
// NOTIFY=&&SYSUID
//SENDNOTE EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSUT1 DD *
HELO USAF
MAIL FROM:<&MAILID>
|
Quote: |
On the last line i am getting parameter substitution error.
Is there any way to process this?
Cant we substitute mail ids because they are in '< >' brackets? |
|
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
HI HDC,
You can't have symbolic parms in SYSUT1 and SYSIN. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You can't use <> in skeleton by default, since these characters are used for other purposes. However, you can override them with the )DEFAULT statement.
For more information, please refer to the fine manual.
O. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
Or replace the line with:
Code: |
MAIL FROM:<<&MAILID>> |
|
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
@VAMSI :
Hi, i'm using symbolics in filetyloring JCL and it's working. Here's a litte example of a Seleton for spooling Beta-92 output to a dedicatet Dataset.
The variables of SYSIN are coming from a panel, where the user has to define some parameters for the output he wants. The little Rexx is sending and retrieving Panel and then doing normal file-tayloring.
Regards, UmeySan
//&ZUSER.B JOB (SP00,PROD,0000),UMEY,MSGLEVEL=(1,1),MSGCLASS=X,
// CLASS=E,NOTIFY=&ZUSER,USER=&ZUSER,REGION=0M
//*
//* SPOOL A BETA-PRINTOUT INTO A DATASET
//*
//STEP010 EXEC PGM=BSS01RFF,REGION=0M,
// PARM=('S=92,B01LST=00,B92LST=91','PGM=B92PRINT')
//*
//B92DEF DD DUMMY
//*
//SFFPARM DD DISP=SHR,DSN=MVSC.BETABSA.PARMLIB
//*
//SFFFDUMP DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//OMSPRINT DD SYSOUT=*
//B92LOG DD SYSOUT=*
//*
//SYSIN DD *
PRINT
SDATE(&YDAT.) StartDate from Panel
STIME(&YANF.) StartTime from Panel
PDATE(&YDAT.) EndDate from Panel
PTIME(&YEND.) EndTime from Panel
MASK(DD.MM.YYYY)
JOBNAME(SFOD%&YINR.) SubCompanyNr in JobId
DDNAME1(IFRSLOGX) Beta-Output
STEPN(P010)
PSTEPN(S010)
SEPARATOR(NO)
SCOPE(BOTH)
MESSAGE(LONG)
DISPOSITION(SHR)
DATASET(WLET.I0&YJNR..IFRS.SPOOL(IFRSLOGX))
AUTOSEL(NO)
//* |
|
Back to top |
|
|
Continuous Learner Currently Banned New User
Joined: 19 Jan 2007 Posts: 3 Location: Kolkata
|
|
|
|
Hi UmeySan,
Can you please explain the usage of BSS01RFF. I have to extract the JESMSGLG & JESYSMSG of some production jobs, which ran in last 24 hours. Is this utility useful for me. If so please send me the complete details, how to use this.
Note:
I was not able to view the 'TSO OUTPUT' command for those Production jobs. It is giving following error message.
JOB <Job_Name> REJECTED - JOBNAME MUST BE YOUR USERID OR MUST START WITH YOUR USERID
So please please help me in this regard.
Thanks,
Siva |
|
Back to top |
|
|
|