Search results

  1. G

    Question Dynacmic Frame

    This may not be helpful, but that code is full of things which are generally frowned upon these days. EDITING is 1970's, and I'm not sure why you need it here?, and include files, especially with arguments, aren't much better. I am guessing you're doing something in CUI? Not sure what's inside...
  2. G

    Question Building A Flexible Web Service

    We use WebSpeed mostly for our own applications and some WSDL for clients who like that sort of thing to access our API's. +1 for WSDL is a pain to setup and arguably overly complicated. For your example, you are talking about using WebSpeed to ingest some random XML, run it through xsltproc...
  3. G

    Question Responding To Post Notification

    {wrap-cgi.i} output-content-type ("text/html":U). {&OUT} "OK". Disclaimers: 1. I'm not 100% sure that 'OK' by itself would be considered to be content-type 'text/html', but IIRC it would be. 2. wrap-cgi.i is a Progress-supplied include that defines output-content-type and &OUT. I *think* it's...
  4. G

    Happy Holidays

    Cringer seems like a stand-up guy, but ... I have heard of Windows back ends ... but until I actually see one with my own eyes, I can't 100% believe that they actually exist ;)
  5. G

    Question How To Run Daily Core Batch Without Record Lock Issue Even Application Up And Active User

    I forgot that code like this still exists, but we certainly *used to* have our fair share of it. But yeah, if you have code like this: FIND thing EXCLUSIVE-LOCK. UPDATE thing.field. ... ie. the user can go for lunch while the 'UPDATE' is blocking the UI ... well, nothing short of rewriting...
  6. G

    Question How To Run Daily Core Batch Without Record Lock Issue Even Application Up And Active User

    Big complicated issue. Superficial answer: track down the FIND in the batch process that's encountering a lock, and change it to use NO-WAIT. Put it inside a loop with a small delay and keep trying until the lock disappears. That's a band-aid solution though. IRL, we have 1000's of batch...
  7. G

    Progress Openedge OEDK "Classroom Edition" Download

    Nothing says "Hey! Let's use this to build our startup!" like "Classroom Edition", login required, and (in my case at least) an 'Access Denied' message even after a valid login. Sigh.
  8. G

    Api To Progressdb

    I don't know what DreamFactory is, but in general, the cool newish (meaning anything since 1995) things will not work directly with Progress, though some of them might work in terms of Progress being capable of impersonating a SQL database, sort of, and some of them (Git for example) are...
  9. G

    Question Duplicate/clone/re-route A Stream

    Create your own version of 'lp' that reads from stdin, writes to the real 'lp', and also writes to whatever other file you want, or otherwise mangles the input in some way to your liking. Put it in your $PATH ahead of the real 'lp'. Kind of an 'lp proxy' or an 'lp wrapper'. If you're feeling...
  10. G

    Craziest Progressism?

    Good point. That's one of those things that is probably wrong in a purist sense, but very helpful IRL and drives me crazy about languages other than Progress. Kind of like the decimal data type.
  11. G

    Craziest Progressism?

    My documentation-inhaling coworker points out that it is, at least, documented (in the CHR function): Kind of reminds me of those ISO-9000 "lifejackets made out of concrete" stories, though.
  12. G

    Question Internetconnection?

    You should probably think in terms of a specific host, not "The Internet". Here is some code (lightly edited, apologies if I missed anything) that we use to verify connection to a third party service. You'd have to replace the -H parameter with some known host and 'Server is alive' with what you...
  13. G

    Question Import\export Headache

    What happens if you take that same record and try to load it again? You can experiment with this with a temp-table defined LIKE the real table.
  14. G

    Question Import\export Headache

    That's ASCII data, you want to look at the binary/raw version of the same data. Here is an example of a simple file in both formats, using Linux hexdump: progress@rwsdev01 appserver$ cat /tmp/foo data world progress@rwsdev01 appserver$ hexdump /tmp/foo 0000000 6164 6174 770a 726f 646c 000a...
  15. G

    Question Import\export Headache

    Since it's only one record affected, just a suggestion: inspect every byte in the offending record, looking for non-printable characters like null, CR, LF, etc. My guess is, something unusual is lurking inside a field. To do this you can use Linux hexdump, or HEdit in Windows, or even REPEAT...
  16. G

    Craziest Progressism?

    Oh man, this must be a sign of serious mental health issues on my part, that totally made my day !!! In a similar vein: buffer some-table:handle:FIND-FIRST("",6207).
  17. G

    Question %5d In Csv

    I quickly tried LarryD's example and it worked for me, so did my own example once I looked slightly more carefully. Excel is a bit weird how it displays cells with embedded LF's, but it works. output to /u1/pwrbrkr/source/develop/foo.csv. put unform chr(34) "hello world" chr(10) "this is...
  18. G

    Craziest Progressism?

    RUN program.p(INPUT v_Var1,OUTPUT v_Var2)(v_RandomVariable). IIRC, 'v_RandomVariable' (and any number of similar tokens following it) will get passed to program.p as a run-time argument, which the called program may choose to ignore. So I think this is a case of 'unusual, but as documented'...
  19. G

    Question %5d In Csv

    According to the Internet, double-quotes should work and that's what Excel does if you save a cell containing a line break and then export it to CSV. However, I couldn't make it work from Progress.
  20. G

    Designing An App

    +1 for DataDigger. But if you want anyone to actually use it, do it in a browser. If you want to learn something new, do it in Angular or React. Or jQuery if you want to do it relatively painlessly ;)
Back
Top