No, that was an example for assigning to an environment variable because you mentioned you were using an external name which uses an environment variable. If your select statement is assigning directly to a file name then you do not specify EXTERNAL in the select and you do not need to do the display and accept of the environment variable either. So it would read: select test-file assign to 'C:\users\....\salesrpt' and then this would be the name of the file that you set in the PC_PRINT_FILE call as well. Question: is this a native code project or a managed code project that you are using? The example in the knowledgbase is for a managed code project so I just wanted to make sure we were on the same page here and then I can send you a complete sample.
↧