about asciioutput add quote issue

Post Reply
Niko
Posts: 50
Joined: Tue Feb 15, 2022 6:43 am
OLAP Product: IBM Cognos TM1
Version: PA 2.09 / TM1 11.7.00000.42
Excel Version: EXCEL 2019
Location: Asia

about asciioutput add quote issue

Post by Niko »

as my local system has a .py file, now i want to use asciioutput genarate a file as it( prolog genarate and epilog execute), but after i open it with notepad++ , as system auto add quote on Both sides of each line, which result in executecommand can not execute successfully, it's very strange,I don't know if anyone has ever had this problem?

Any help would be greatly appreciated.

mannual create .py file:

Code: Select all

import asyncio
import nest_asyncio
nest_asyncio.apply()
from concurrent.futures import ThreadPoolExecutor
from TM1py.Services import TM1Service
from typing import List
import time
asciioutput genarate .py file:

Code: Select all

"import asyncio"
"import nest_asyncio"
"nest_asyncio.apply()"
"from concurrent.futures import ThreadPoolExecutor"
"from TM1py.Services import TM1Service"
"from typing import List"
"import time"
User avatar
Alan Kirk
Site Admin
Posts: 6606
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: about asciioutput add quote issue

Post by Alan Kirk »

Niko wrote: Sun Jul 03, 2022 5:08 am as my local system has a .py file, now i want to use asciioutput genarate a file as it( prolog genarate and epilog execute), but after i open it with notepad++ , as system auto add quote on Both sides of each line,
To produce it without the quotes, set this variable to a null string in the prolog.

Code: Select all

DatasourceASCIIQuoteCharacter='';
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
Niko
Posts: 50
Joined: Tue Feb 15, 2022 6:43 am
OLAP Product: IBM Cognos TM1
Version: PA 2.09 / TM1 11.7.00000.42
Excel Version: EXCEL 2019
Location: Asia

Re: about asciioutput add quote issue

Post by Niko »

Alan Kirk wrote: Sun Jul 03, 2022 6:20 am
Niko wrote: Sun Jul 03, 2022 5:08 am as my local system has a .py file, now i want to use asciioutput genarate a file as it( prolog genarate and epilog execute), but after i open it with notepad++ , as system auto add quote on Both sides of each line,
To produce it without the quotes, set this variable to a null string in the prolog.

Code: Select all

DatasourceASCIIQuoteCharacter='';
I get it, and it works , thank you very much.
Post Reply