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
 

 

REXEC and using symbolic for PARM.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
DB2 Guy

New User


Joined: 28 Oct 2008
Posts: 98
Location: Cubicle

PostPosted: Thu Nov 22, 2012 5:57 pm    Post subject: REXEC and using symbolic for PARM.
Reply with quote

Hi,

I've got a weird requirement: for example there is this kind of a step executing REXEC:
Code:
//STEP015 EXEC PGM=REXEC, TIME=NOLIMIT,                         
// PARM='/-l abcdefg -p abc001 111.1.111.111 updInspct.pl INSPCT'
//SYSTCPD   DD DSN=SYS1.TCPPARMS(TCPDATA),DISP=SHR               
//SYSPRINT  DD SYSOUT=*                                         
and I need to "hide" the PARM info, as in, it should not be visible to human eyes.

So to compete with this - I thought one solution might be using "parameterization". For example:

Code:
// JCLLIB ORDER=MY.OWN.JCLLIB                   
//*                                               
//  INCLUDE MEMBER=HIDEIT                         
//*                                               
//STEP015 EXEC PGM=REXEC, TIME=NOLIMIT,           
//  PARM=&FPARM                                   
//*                                               
//SYSTCPD   DD DSN=SYS1.TCPPARMS(TCPDATA),DISP=SHR
//SYSPRINT  DD SYSOUT=*                           
//*                                               


the contents of HIDEIT
Code:
// SET PRM1=/                                                       
// SET PRM2=-                                                       
// SET FPARM='L ABCDEFG -P ABC001 111.1.111.111 UPDINSPCT.PL INSPCT'

But on JCl-syntax chek, it give me two errors:

1. VALUE '/-L' MUST BE QUOTED OR IS QUOTED INCORRECTLY. I belive it's because "/" and "-" are not recognised by JCl cheker.

2. If I remove PRM1 and PRM2 and only passes rest of the value (FPARM) it works, BUT - only if the contents are in CAPS. Small case ae not being accepted as the valid JCL charcters.

Please assist.

I looked at REXEC manuals and it says the information via PARM is case sensitive, it has to be exacty same as needed. And as it is ID and paswword info - the chances of fighting back on the original requirements get slim...

can soeone please point to some work aorund...
Back to top
View user's profile Send private message

prino

Active Member


Joined: 07 Feb 2009
Posts: 984
Location: Oostende, Belgium

PostPosted: Thu Nov 22, 2012 6:15 pm    Post subject:
Reply with quote

1) JCL check is not a substitute for the normal JCL conversion process.
Code:
// SET PRM1='/'
// SET PRM2='-'

will work!
2) Lowercase is absolutely no problem in quoted SET statements or in the PARM=.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Thu Nov 22, 2012 6:23 pm    Post subject:
Reply with quote

Quote:
I need to "hide" the PARM info, as in, it should not be visible to human eyes.
You DO realize, I hope, that this "requirement" is bogus and cannot actually be achieved -- even if you by some miracle managed to hide this data in the source, it would be visible to anyone with access to the job queue? Furthermore, if you are attempting to hide the user id and password for the remote server, why are you not using the NETRC facility that IBM already provides for this purpose? If you don't know about NETRC, I recommend you find a copy of the Communications Server IP User's Guide manual and start reading.
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 175
Location: UK

PostPosted: Thu Nov 22, 2012 8:36 pm    Post subject:
Reply with quote

Why don't you have the user ID and passord in a dataset which the Rexx routine reads instead of having it on the parm statement?
Back to top
View user's profile Send private message
DB2 Guy

New User


Joined: 28 Oct 2008
Posts: 98
Location: Cubicle

PostPosted: Fri Nov 23, 2012 6:58 pm    Post subject:
Reply with quote

Thanks Prino. Actually, I did a silly mistake of not using quotes around the symbolic &FPARM in JCL and your hint helped in here.

Thanks.
Back to top
View user's profile Send private message
DB2 Guy

New User


Joined: 28 Oct 2008
Posts: 98
Location: Cubicle

PostPosted: Fri Nov 23, 2012 7:12 pm    Post subject:
Reply with quote

Yes, Robert I do realize that and I tried to convenience the client but then not everyone is (technically) intelligent enough to think in that direction.

Thanks for the hint on NETRC. A nice 'reading-week' is ahead...

David - it's not REXX, it’s REmote eXECution - The REmote eXECution protocol (REXEC) is a remote execution client that lets you run a command on a remote host and receive the results on the local host.
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 175
Location: UK

PostPosted: Fri Nov 23, 2012 7:27 pm    Post subject:
Reply with quote

Whoops, sorry! icon_redface.gif
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm
No new posts Copy a particular column based on PAR... brindhamohan DFSORT/ICETOOL 5 Wed May 11, 2016 8:49 am
No new posts Use of Parm in SORT Ambili S DFSORT/ICETOOL 2 Mon May 09, 2016 9:16 pm
This topic is locked: you cannot edit posts or make replies. Put quotes in Symbolic parameter whil... Yashashri All Other Mainframe Topics 7 Mon Feb 15, 2016 12:24 pm


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