My mistake. I found a typo I made. YES! Your last suggestion did EXACTLY what I need!
Consider yourself a HERO today! I greatly appreciate your help on this. It has saved me days (at least) of work.
THANK YOU
I'm looking to get something like the following except that I need two lines printed when I find "w-title" and not just one.
./csv-prtloc2.p:def var w-title as char format "x(40)" init
./csv-prtloc2.p:{repstart.i &title=w-title
./lblsxsku.p:def var w-title as char format...
Okay. I'm begin very dense today.... I dropped the first part of my script and ran just the 'find' command you gave me. This worked! But it didn't give me the source file names as I'd hoped. I think I've been working on this too long and I've gone blind ;->
My goal is to list the...
I get the same error message. And from what I've read grep won't print the two lines, just one.
find . -name "*.p" -type f|xargs grep "w-title" > /home/gls/find.doc
will give find me all the program lines in all the directories and subdirectories I'm searching, but it won't give me the...
I think my problem is on the 'do' line or the 'for x' line.
I changed the awk statement to
grep -i -p"." "w-title"
and get the same message.
' is not expected.itles[29]: 0403-057 Syntax error at line 31 : `do
I'm trying to write a script to find all the report titles in our program directories. The key I can use for this is "w-title". My biggest problem is that the actual title may be on the next line so I need to print out both lines.
I'm brand new to scripting so there's probably something...
Thanks so much for the help. This certainly clears up my confusion around the Progress documentation. Now things make sense and I got my program to work the way I intended.
Thanks for your help.
I love using the Browse and Query but this is the first time I'm trying to use a MULTIPLE BROWSE. I need to select multiple records and then save those rowids to a temp-table to use them for a later "batch" process. I'm following the only instructions/sample code I can find and I'm lost on...
Has anyone ever run into something like this?
We're on Progress 9.1D07, CHUI application, AIX 5.1.
We have 2 test databases, both copies of our production db. I have a program that works perfectly on both production and copy A, but one part does not work on copy B of the db. I've deleted...
If your file doesn't have the indices you need you can load a temp-table and build the needed index there. Then you can use the "if last-of(temp-table.note)".
Is there some way to export a single character string as a record and NOT have the character string surrounded by quote marks?
I have a need to build an export file that will be sent to a mainframe somewhere and they need the data without the quote marks surrounding the character string...
An excellent resource is the book "Making Good Progress, The Application Development Process" by John Campbell. You buy it through White Star Software. It's expensive, but I've found it invaluable in explaining things. Especially since I couldn't get sent to any courses when I...
I don't want to actually work with Word, just put some formatting into the text file that I output so the users can open the file in Word without having to manually put in all the formatting.
HTH
TIA
Hi, All.
I need some help. I have a program that emails a text file to the user. They now want this file formatted to a Word .DOC file (with specific margins, font sizes, etc.). I have no idea how I can make this happen. Changing the file extension from .TXT to .DOC makes no difference at...
Thanks for all the help on this one.
I made the array a list and used a lookup in the FOR EACH WHERE statement and things are working beautifully.
Thanks very much, everyone, for your help!
I have the array defined as
ae-code as char format "x(3)" extent 54
init ["L01",
"D01",
"L09",..... etc.
I need to find all the records where a field's value equals the value in any of the elements of the array. Is there any way...
I'm trying to select records based on a field being equal to any of the elements in a hard-coded array and I seem to be brain-dead on this today. :~/ Can anyone give me some suggestions on how I can make this happen?
TIA
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.