View previous topic :: View next topic
|
Author |
Message |
pankaj1002
New User
Joined: 30 Jul 2012 Posts: 18 Location: India
|
|
|
|
Hi Guys,
I got stuck while working on a tool. I got one ISPF skeleton that converts all '|' (without quotes) to ",". But while executing the Rexx code, its giving an error for the below line.
INREC FINDREP=(IN=C‘|’,OUT=C‘”,”’)
Now, If I remove '|' (only), its working fine i.e. my o/p JCL is getting created. It seems that skeleton is not taking | symbol.
Can you please help me on this. What needs to be done if I have to include the above line with '|' in my skel jcl.
Thanks! |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
What does the trace show? |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
Back to top |
|
|
pankaj1002
New User
Joined: 30 Jul 2012 Posts: 18 Location: India
|
|
|
|
Nic Clouston wrote: |
What does the trace show? |
Its not showing anything in Trace but throwing a error window saying:
ISPF112
Substitution error
Invalid cond. sub. string.
PeterHolland wrote: |
http://publib.boulder.ibm.com/infocenter/zos/v1r12/index.jsp?topic=%2Fcom.ibm.zos.r12.f54dg00%2Fchap9b.htm |
@Peter : I saw the )DEFAULT cntrl stmnt but I nam not able to deploy it in my code. Could you please help me provide a sample code to show how to use it? I am new in this area. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
I doubt very much that it threw an error window. It may well have displayed an error panel but nothing on the mainframe throws anything. In the old days I suppose you could sit on top and throw tape protect rings or paper aeroplanes or some-such but the machine itself, or its software, does not throw anything.
A trace would have shown what was happening up until the error so would have provided some information that may, or may not, have been relevant. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
well Nic,
it looks like You will have to live with the effects of java and c++ misculture/ignorance |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
If they are being taught 'throw' in a mainframe context at whatever 'training' institute they attended they should be feeding back to their ex trainers that they are teaching wrongly. But then we couldn't be 'grumpy old men'! |
|
Back to top |
|
|
Stefan
Active User
Joined: 12 Jan 2006 Posts: 110 Location: Germany
|
|
|
|
pankaj1002 wrote: |
Could you please help me provide a sample code to show how to use it? |
Use )DEFAULT abcdefg at the very beginning of your file tailoring skeleton.
The seven characters represented by abcdefg override the use of the ), &, ?, !, <, |, and > characters, respectively. Exactly seven characters must be specified. These characters have special meanings in data records.
So, for example to allow the | sign to be used, specify )DEFAULT )&?!<#>. |
|
Back to top |
|
|
|