IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Parameter substitution error in file tailoring


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
hdc123

New User


Joined: 15 May 2006
Posts: 7

PostPosted: Wed Sep 27, 2006 12:28 pm
Reply with quote

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
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Wed Sep 27, 2006 12:32 pm
Reply with quote

HI HDC,

You can't have symbolic parms in SYSUT1 and SYSIN.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Sep 27, 2006 4:34 pm
Reply with quote

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
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Wed Sep 27, 2006 5:10 pm
Reply with quote

Or replace the line with:
Code:
MAIL FROM:<<&MAILID>>
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Thu Sep 28, 2006 8:32 pm
Reply with quote

@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
View user's profile Send private message
Continuous Learner
Currently Banned

New User


Joined: 19 Jan 2007
Posts: 3
Location: Kolkata

PostPosted: Thu Jan 25, 2007 7:47 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top