View previous topic :: View next topic
|
Author |
Message |
ravikanth
New User
Joined: 12 Jan 2006 Posts: 29
|
|
|
|
Hi All,
I am trying to use ISPF File tailoring operations FTINCL to Include a template with substitution variables.
Example 1:
If I have the Skeleton content as
)CM -------------------------------------------------------------------
TRY THIS
<?xml version="1.0" encoding="CP037"?>
<resource name="&RESNME"/>
Output: 1
After FTINCL, I am getting outPut as
TRY THIS
Example 2:
If i have skeleton content as
)CM -------------------------------------------------------------------
TRY THIS
?xml version="1.0" encoding="CP037"?
resource name="&RESNME"
Output 2:
TRY THIS
?xml version="1.0" encoding="CP037"?
resource name="ETROP04"
How can we ignore or escape these < and or > characters or Any thoughts on how we could best achieve this senario.
Thank you,
Ravikanth Chavali |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Use the )DEFAULT statement in the skeleton to override the use of "<" and ">" as control characters by FTINCL. |
|
Back to top |
|
|
ravikanth
New User
Joined: 12 Jan 2006 Posts: 29
|
|
|
|
I have tried the (DEFAULT statement as described below that I guess I was doing something wrong.
In Skeleton, replaced < with @ and > with #
)DEFAULT )ø?!@|#
@?xml version="1.0" encoding="CP037"?#
@manifest type="MANIFEST_SHIPLIST"#
@resource name="&RESNME"/#
OutPut 1:
Blank file
However I also tried passing < and or > as substitution variables values from the REXX and that worked.
In the Rexx, before executing FTINCL
gtSymb = '>'
ltSymb = '<'
In the Skeleton,
)CM -------------------------------------------------------------------
TRY THIS
<SYMB.?xml version="1.0" encoding="CP037"?>SYMB
<SYMB.resource name="&RESNME"/>SYMB
Note: I have used the . to separate substitution variable from the text that immediately follows, but since >SYMB was the last char of the line used it as is. Also tried with . that also worked.
OutPut 2:
TRY THIS
<?xml version="1.0" encoding="CP037"?>
<resource name="RKANTH"/> |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
You're doing it wrong. The purpose of the )DEFAULT statement is to change the control characters; if you then change the skeleton to use the new control characters, you have undone what you attempted to do. |
|
Back to top |
|
|
ravikanth
New User
Joined: 12 Jan 2006 Posts: 29
|
|
|
|
After posting my previous reply. I realized the mistake I am doing. Infact 2 mistakes.
1. On the )Default statement mistakenly I changed the & with ø.
2. Once I changed the default behaviour of < and > to @ and #. I have changed the skeleton to use the new defaults. Defeating the purpose of using different symbols for that purpose.
I corrected these mistakes and it worked fine. Thank you so much!
In the Skeleton
TRY THIS
)DEFAULT )&?!@|#
<?xml version="1.0" encoding="CP037"?>
<resource name="&RESNME"/>
OutPut:
TRY THIS
<?xml version="1.0" encoding="CP037"?>
<resource name="RKANTH"/>
Once again thank you so much,
Ravikanth Chavali |
|
Back to top |
|
|
|