Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Parameter substitution error in file tailoring

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Parameter substitution error in file tailoring
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    Post subject:
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: 2360
Location: Israel

PostPosted: Wed Sep 27, 2006 4:34 pm    Post subject:
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: 1226
Location: Israel

PostPosted: Wed Sep 27, 2006 5:10 pm    Post subject:
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: 755
Location: Germany

PostPosted: Thu Sep 28, 2006 8:32 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us