Assign print arguments into a string

jozef

New Member
I really didn't know how to title this and tried to do searches but had the same problem.

Trying to assign postscript arguments into a character string before doing a UNIX call.

E.g. wstr = "filename -iINFILE -oOUTFILE -tWIDE -s10".

When I display the string I get something like "filename -iINFILE oOUTFILE tWIDE s10". In other words, some of the "-" are going missing. I can force them to appear by putting "--" in front of some (not all) of the arguments. I guess (tentatively) that some of these are actual Progress calls.

Is there any way of getting Progress to ignore what I put into a string and leave it alone?

Hope I made my self clear :confused:
 
Not entirely sure I know what you mean. I see what you're putting intot he string, but what are you doing with wstr once you're done? What happens when you message out the value of wstr? Is that ok? I see you're displaying it. What's the command for that? I've not experienced '-' going missing like that. Not that that means it doesn't happen of course!
 
Not entirely sure I know what you mean. I see what you're putting intot he string, but what are you doing with wstr once you're done? What happens when you message out the value of wstr? Is that ok? I see you're displaying it. What's the command for that? I've not experienced '-' going missing like that. Not that that means it doesn't happen of course!

DEFINE VARIABLE p_Parameter AS CHARACTER NO-UNDO.
ASSIGN p_Parameter = "e2ps.py -i$FILEIN -o$FILEOUT -dHP:3 -tWIDE -s10".
DISPLAY p_parameter FORMAT "x(5)" WITH FRAME a-frame.

The DISPLAY statement shows "e2ps.py -i$FILEIN o$FILEOUT -dHP:3 tWIDE s10"
 
Here is what your code shows to me (after changing the format to "x(50)" ... works fine on OE10.0B and OE10.1B. What O/S and Progress version are you using? code page? char/gui? term type if char?


p_Parameter
──────────────────────────────────────────────────
e2ps.py -i$FILEIN -o$FILEOUT -dHP:3 -tWIDE -s10
 
Here is what your code shows to me (after changing the format to "x(50)" ... works fine on OE10.0B and OE10.1B. What O/S and Progress version are you using? code page? char/gui? term type if char?


p_Parameter
──────────────────────────────────────────────────
e2ps.py -i$FILEIN -o$FILEOUT -dHP:3 -tWIDE -s10

Redhat Linux
10.2A
ISO8859-1
CHAR
vt100
 
Back
Top