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

ESP Symbolic Variables not being resolved in submitted job


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
luis_pr

New User


Joined: 13 Oct 2007
Posts: 19
Location: Fort Worth, Tx USA

PostPosted: Wed Aug 29, 2012 8:32 pm
Reply with quote

I set up an EVENT to be triggered when one of several files are cataloged.

The EVENT submits a job that flushes with a JCL error: UNIDENTIFIABLE CHARACTER % ON THE DD STATEMENT.

The JCL that gets submitted does not replace ESP's symbolic variable ESPTRDSN with the name of the file that triggered the EVENT.

The JCL statement causing the error looks like so:
//SORTIN DD DSN=%ESPTRDSN,
// DISP=SHR

When ESP submits the job with the DD Statement shown above, the ESPTRDSN Variable is not replaced by the name of the dataset that triggered the event.

I am using Version 5.5 in z/OS 1.13.
TIA, Luis
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Wed Aug 29, 2012 9:00 pm
Reply with quote

Hello,

Has some other jcl like this worked or is this the first attempt?

If this is the first attempt, there may be a configuration issue.

Suggest you open an issue with CA Support.
Back to top
View user's profile Send private message
luis_pr

New User


Joined: 13 Oct 2007
Posts: 19
Location: Fort Worth, Tx USA

PostPosted: Wed Aug 29, 2012 9:09 pm
Reply with quote

That is an unknown. It may be the first attempt. I have touched base with other ESP Users but so far, have not located anyone else who has tried coding symbolic variables in the JCL that ESP will submit.

Thanks, will suggest contacting CA Support.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Wed Aug 29, 2012 9:21 pm
Reply with quote

why not start from the manuals ?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Aug 29, 2012 9:22 pm
Reply with quote

if you are expecting JES to convert ESPTRDSN
ESPTRDSN has to be in a system table available for the conversion.

is the char % or &?
Back to top
View user's profile Send private message
luis_pr

New User


Joined: 13 Oct 2007
Posts: 19
Location: Fort Worth, Tx USA

PostPosted: Wed Aug 29, 2012 9:44 pm
Reply with quote

Already looked at the User Manual and Advanced User Manual.

No, I expect ESP to convert, not JES. The char is a percent sign, %.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Wed Aug 29, 2012 9:53 pm
Reply with quote

why not look at a <snippet> where an ESP variable is substituted an proceed in the same way ?
( updating/defining the proper ESP infrastructure )
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Wed Aug 29, 2012 9:53 pm
Reply with quote

Hello,

Yes, ESP should deal with the job on the way into the system and when JES sees this, the % variables would already be resolved.

Are you sure ESPTRDSN is spelled the same everywhere it is mentioned? What value should be substituted?
Back to top
View user's profile Send private message
luis_pr

New User


Joined: 13 Oct 2007
Posts: 19
Location: Fort Worth, Tx USA

PostPosted: Wed Aug 29, 2012 10:09 pm
Reply with quote

When you activate an Event-level data-set trigger, %ESPTRDSN is set to the fullyqualified name of the data set specified when the trigger was defined.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 30, 2012 12:20 am
Reply with quote

Quote:
Are you sure ESPTRDSN is spelled the same everywhere
Back to top
View user's profile Send private message
luis_pr

New User


Joined: 13 Oct 2007
Posts: 19
Location: Fort Worth, Tx USA

PostPosted: Thu Aug 30, 2012 12:37 am
Reply with quote

Yup.

I just managed to get it to work. The Job Card must be followed by a comment that looks like so:

<job card>
//*ESPSYMBOL %
<the rest of the job>
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Thu Aug 30, 2012 12:53 am
Reply with quote

Good to hear you have it working - thank you for posting the solution icon_smile.gif

d
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Repeat n times by substuting SEQNUM i... DFSORT/ICETOOL 2
No new posts Preserve changes to ISPF Panel Variables TSO/ISPF 5
No new posts JCL with variables JCL & VSAM 1
No new posts pass data as symbolic parameter from ... CLIST & REXX 2
No new posts JCL Variables JCL & VSAM 1
Search our Forums:

Back to Top