AW: [U2] Integrating .NET and UniVerse 10

2005-09-20 Thread Ewinger Klaus
Hi Simon

At DB2 Information Management Conference, IBM announced a new extension to 
UniVerse: U2 Soap Server. It is definitely the way to go for integration with 
.NET. As it fully supports WSDL, it plugs very nicely into Visual Studio 
2003/2005. And Service Oriented Architecture (SOA) is the future!

The only disadvantage:
It takes until August 2006 until it is available as part of UniVerse 10.2. But 
maybe IBM gives you an early version for beta testing? Give it a try!

Regards,

Klaus Ewinger

-Urspr|ngliche Nachricht-
Von: Simon Jackson [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 20. September 2005 01:25
An: u2-users@listserver.u2ug.org
Betreff: [U2] Integrating .NET and UniVerse 10

Hi All,

We are looking at integrating our UniVerse 10 system with applications written 
in .NET, particularly ASP.NET. We are currently evaluating five mechanisms for 
accessing UniVerse data:
* UVODBC
* RedBack
* PDP.NET (http://www.rainingdata.com/products/connect/dotnet/index.html)
* MV.NET (http://bluefinity.com/)
* UniConduit (http://www.conduitit.hostecom.com/Products.htm)

Does anyone have any experience with these products that would be useful for us 
to know? Thanks.

Regards

Simon Jackson
[EMAIL PROTECTED]
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Integrating .NET and UniVerse 10

2005-09-20 Thread Tony Gravagno
Ewinger Klaus wrote:
 Hi Simon
 At DB2 Information Management Conference, IBM announced a
 new extension to UniVerse: U2 Soap Server. It is
 definitely the way to go for integration with .NET. As it
 fully supports WSDL, it plugs very nicely into Visual
 Studio 2003/2005. And Service Oriented Architecture (SOA)
 is the future! 
 The only disadvantage:
 It takes until August 2006 until it is available as part
 of UniVerse 10.2. But maybe IBM gives you an early
 version for beta testing? Give it a try!

I agree that SOA is a good direction, depending on the application, and I
look forward to seeing what IBM comes up with.  Until then, web services
can already be created quickly in Visual Studio with a Wizard and virtually
no coding.  The function that's exposed as a service can easily be a
wrapper around any call to a U2 business rule.  Diagram example:
  webserviceclientnetwebserverwebservicewrappercallBASIC

So all of the plumbing can be done up to the wrapper in a couple minutes,
then people are free to choose what goes into the wrapper to do that
callBASIC part.  Example:

[WebMethod]
public string WebService1(string theInput) {
// this is the wrapper, no hint here of underlying communications
return myWrapper.WebService1(theInput);
}


// this function/method is in a class that's instantiated as myWrapper
above
public string WebService1(string theInput) {
  string result = ;
  mvEnvironment myEnv = new mvEnvironment();
  mvAccount myAcct = new mvAccount(uvnt);
  myAcct.CallProg(ws1,ref theInput, ref result);
  return result;
}

You can replace that second function with syntax from any product we've
discussed here without changing the web service code itself or the
interface presented to the client.  This example happens to use mv.NET.
You can even combine results from U2 and other environments, even calling
other web services, and return them as a single response.

Again, I'll be interested in what IBM comes up with, but I just did all of
this in less than 5 minutes to make sure I had my facts straight - what
else can IBM offer us that's going to take them a year to develop?

Tony
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] XML question on UniData 6.0

2005-09-20 Thread Metherall, Arthur
Hello,

  Sorry I wasn't clear.

  Yes, I want to load a single UniData internal or external date field from the 
XML date fields.

  Instead of having to save them as three individual fields and then combine 
them in an I-Type or doing it inside my UniBasic program.

  How do I need to define my Unidata 6.0 XML extraction file to do this?

  Thanks.

- - - - - - - - - - - -
Arthur E. Metherall
Sr. Programmer Analyst
Courier Corporation
- - - - - - - - - - - -

-Original Message-
From: Metherall, Arthur 
Sent: Monday, September 19, 2005 10:57 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] XML question on UniData 6.0


Yes, you've read this before.  But all the XML experts must have been on 
vacation, so I'm posting it again in hopes that they 're back.

Is there a way to define the following XML section in a Unidata 6.0 extraction 
file, so that it will give me a single date (07/20/2005) value/DICT entry, 
without having to define individual Month (07), Day(20), Year(2005) DICT items 
and then using an I-Type to rebuild it?

  BusinessAcknowledgementDate
Date
  Year2005/Year
  Month07/Month
  Day20/Day
/Date
Time14:47:45/Time
  /BusinessAcknowledgementDate

This is a predetermined XML format for handling dates with our customers, I 
can't change the structure.

Thanks,

  Arthur

- - - - - - - - - - - -
Arthur E. Metherall
Sr. Programmer Analyst
Courier Corporation
- - - - - - - - - - - -
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


[U2] UV and XML Schema

2005-09-20 Thread George Gallen
ok. I've been given the task of trying to output a database based on an
XML Schema file. (ONIX in particular), for edi purposes.

I've played a little with XML, none at all with schema.
So I'm looking for a some book titles that will help get me up to speed
   something of a reference, but also something starts you from scratch.

If I need to buy two books, fine.

Thanks
George
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] PHP Options

2005-09-20 Thread Cedric Fontaine
Tony Gravagno wrote:

 Hi Dawn.  I had the same question about D3 and asked about it in one of the
 RD forums.  The answer was so easy, I posted a response to my own question
 in less than two hours - funny how these epiphanies come only _after_ you
 ask someone else.
 
 Here is a link to the question and answer.
 http://forums.rainingdata.com/index.php?showtopic=869

Sorry but as a developper of JD3, I disagree that jd3 cannot be used on
live site. Since two years we're using jd3 on live sites and it works !
Easily with only 5 jd3 client, a website is serving about 250.000 pages
per month.
Don't you think that flashconnect is using socket to communicate ?

Cedric
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] PHP Options

2005-09-20 Thread Cedric Fontaine
Dawn Wolthuis wrote:
 Thanks, Chuck. Other than MySQL, ODBC is the only thing I know how to do
 with PHP, but since someone had come up with a D3 solution (it sounds like
 from cdp), I thought there might be a better one for PHP too. So many
 options, none of them good (including PHP not being my favorite language by
 far!) cheers! --dawn

We're currently porting jd3 from D3 to Universe. jd3 uses socket and
offer a way to communicate and call subroutine from php.

jd3 is opensource and if you want to help us in this project, feel free
to contact me

Cedric
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UV and XML Schema

2005-09-20 Thread Robert.Porter2
If I need to buy two books, fine.

Have you seen Oreilly's Safari Bookshelf? You get access to the text of
thousands of computer books. For individuals it's $15 to $20 a month and
you can have 10 books in your bookshelf at any time.  The only downside
is that if you add a book to your bookshelf, you have to keep it there
for about a month before you can replace it with something else. There's
a free trial too. Just wish there were U2 books... but that's true in
general. It's http://www.safaribooksonline.com  and no I don't work for
them or get compensated in any way, I just use (and like) the service.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UV and XML Schema

2005-09-20 Thread Kevin King
George, try 'The XML Bible', big thick tome, but covers a lot of
ground and gets through the fundamentals quickly. 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UV and XML Schema

2005-09-20 Thread George Gallen
Will this cover XML schema as well as XML?

George

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Kevin King
Sent: Tuesday, September 20, 2005 10:16 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] UV and XML Schema


George, try 'The XML Bible', big thick tome, but covers a lot of
ground and gets through the fundamentals quickly. 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UV and XML Schema

2005-09-20 Thread George Gallen
Thanks. I saw the Oreilly book on Amazon and most likely will
buy the physical book as one (I have other Oreilly's as well).
I prefer physical books rather than printing out online books.

George

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, September 20, 2005 10:12 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] UV and XML Schema


If I need to buy two books, fine.

Have you seen Oreilly's Safari Bookshelf? You get access to the text of
thousands of computer books. For individuals it's $15 to $20 a month and
you can have 10 books in your bookshelf at any time.  The only downside
is that if you add a book to your bookshelf, you have to keep it there
for about a month before you can replace it with something else. There's
a free trial too. Just wish there were U2 books... but that's true in
general. It's http://www.safaribooksonline.com  and no I don't work for
them or get compensated in any way, I just use (and like) the service.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UV and XML Schema

2005-09-20 Thread George Gallen
actually, the review on amazon made this book to be more of 
reference, than a tutorial for learning. (I skipped this one
for now).

George

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of George Gallen
Sent: Tuesday, September 20, 2005 10:31 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] UV and XML Schema


Thanks. I saw the Oreilly book on Amazon and most likely will
buy the physical book as one (I have other Oreilly's as well).
I prefer physical books rather than printing out online books.

George
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] XML question on UniData 6.0

2005-09-20 Thread Keith W. Roberts
I think you're pretty much stuck with doing it in your program.  You might
subroutine it and call it when /Date is encountered.  At least then it'll
be useful for similar schema.

-Keith

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Metherall, Arthur
 Sent: Tuesday, September 20, 2005 4:54 AM
 To: u2-users@listserver.u2ug.org
 Subject: RE: [U2] XML question on UniData 6.0
 
 Hello,
 
   Sorry I wasn't clear.
 
   Yes, I want to load a single UniData internal or external 
 date field from the XML date fields.
 
   Instead of having to save them as three individual fields 
 and then combine them in an I-Type or doing it inside my 
 UniBasic program.
 
   How do I need to define my Unidata 6.0 XML extraction file 
 to do this?
 
   Thanks.
 
 - - - - - - - - - - - -
 Arthur E. Metherall
 Sr. Programmer Analyst
 Courier Corporation
 - - - - - - - - - - - -
 
 -Original Message-
 From: Metherall, Arthur 
 Sent: Monday, September 19, 2005 10:57 AM
 To: u2-users@listserver.u2ug.org
 Subject: [U2] XML question on UniData 6.0
 
 
 Yes, you've read this before.  But all the XML experts must 
 have been on vacation, so I'm posting it again in hopes that 
 they 're back.
 
 Is there a way to define the following XML section in a 
 Unidata 6.0 extraction file, so that it will give me a single 
 date (07/20/2005) value/DICT entry, without having to define 
 individual Month (07), Day(20), Year(2005) DICT items and 
 then using an I-Type to rebuild it?
 
   BusinessAcknowledgementDate
 Date
   Year2005/Year
   Month07/Month
   Day20/Day
 /Date
 Time14:47:45/Time
   /BusinessAcknowledgementDate
 
 This is a predetermined XML format for handling dates with 
 our customers, I can't change the structure.
 
 Thanks,
 
   Arthur
 
 - - - - - - - - - - - -
 Arthur E. Metherall
 Sr. Programmer Analyst
 Courier Corporation
 - - - - - - - - - - - -
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


[U2] Problem sending to the list

2005-09-20 Thread Jeff Fitzgerald
I'm posting this on behalf of John Reid who is having problems posting...


I think that I have pretty much exhausted all of my alternatives on
attempting to send to the u2 users list.  I am only in 'receive' mode, and
have been since we went to lotus notes, about a year ago.  I have joined and
rejoined the list at the website, validated my accounts etc.  But when i
send a reply to the list, on a topic that I know I could help the group (due
to my age) its as if the message gets lost in space.   

Our mail server is remote to us, and we arent given much leeway as to what
we can complain about.  However, other employees here are able to send to
the list including gordon glorfield, and peter olson. 

Anyway, anything you could suggest would be appreciated. 
john reid

[EMAIL PROTECTED]
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Problem sending to the list

2005-09-20 Thread Larry Hiscock
When was the last time you attempted to post?  I corrected a problem with
our demime tool (which strips attachments and html encoding from postings)
about a week ago or so.  Please try posting to the list again and le me know
if you are still having problems.

Larry Hiscock
Moderator


-Original Message-
Sent: Tuesday, September 20, 2005 8:29 AM
To: 'u2-users@listserver.u2ug.org'
Subject: [U2] Problem sending to the list

I'm posting this on behalf of John Reid who is having problems posting...


I think that I have pretty much exhausted all of my alternatives on
attempting to send to the u2 users list.  I am only in 'receive' mode, and
have been since we went to lotus notes, about a year ago.  I have joined and
rejoined the list at the website, validated my accounts etc.  But when i
send a reply to the list, on a topic that I know I could help the group (due
to my age) its as if the message gets lost in space.   

Our mail server is remote to us, and we arent given much leeway as to what
we can complain about.  However, other employees here are able to send to
the list including gordon glorfield, and peter olson. 

Anyway, anything you could suggest would be appreciated. 
john reid

[EMAIL PROTECTED]
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] UV and XML Schema

2005-09-20 Thread Results

Robert,
I've spoken (recently) to Tim O'Reilly and he is open to adding mv 
books to the line again (they have had them before) but he needs to see 
that there's a market. We need to raise our visibility as a group if we 
want to see more books come out.


 - Chuck Barouch

[EMAIL PROTECTED] wrote:

Have you seen Oreilly's Safari Bookshelf? ... Just wish there were U2 books... 

---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UV and XML Schema

2005-09-20 Thread George Gallen
now that IBM own UV, that might make for some bigger pull,
like if the title of the book is IBM's Universe/Unidata Multivalue Database.

People will the IBM part and give it a little more respect
than just oh, Pick.

George

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Results
Sent: Tuesday, September 20, 2005 12:37 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] UV and XML Schema


Robert,
 I've spoken (recently) to Tim O'Reilly and he is open to adding mv 
books to the line again (they have had them before) but he needs to see 
that there's a market. We need to raise our visibility as a group if we 
want to see more books come out.

  - Chuck Barouch

[EMAIL PROTECTED] wrote:

Have you seen Oreilly's Safari Bookshelf? ... Just wish there were U2 books... 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] UV and XML Schema

2005-09-20 Thread Results
George,
I made that point as well. Tim's position is very simple: If I print 
it, I need to know it will be purchased. The IBM name increases 
visibility, but he needs to have some basis for believing that sales 
will follow from publication. We are a notoriously 'penny aware' market.

 - Charles Barouch

George Gallen wrote:

 now that IBM own UV, that might make for some bigger pull, like if 
 the title of the book is IBM's Universe/Unidata Multivalue Database.

 People will the IBM part and give it a little more respect than just 
 oh, Pick.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


[U2] [AD] Fwd: job offer [/AD]

2005-09-20 Thread U2UG
FORWARDED WITHOUT ENDORSEMENT


Hi Charles,
Greeting. I have a Pick Programmer position  at one of our direct client 
in Atlanta,GA  

Please email me a word copy of your updated resume with your

   1. Rate:
   2. Availability  :
   3. Visa Status :
   4. Open For Relocation Atlanta,GA
   5. Contact No :

 

The details about the position are mentioned below:-

 

Job/Position Title: Pick Programmer  

Location:   Atlanta,GA

Duration:   6 months

 

Project/Deliverable Description: 

 

a Pick developer.  MUST be able to start by Sept. 26th. The candidate 
will code and maintain business applications, develop and support 
large-scale high-volume transaction environment, and program in Pick.

 

Candidate will:

-Support and develop programs/tools associated with client's software.

-Maintain and enhance source code management/release management activities.

 

-Design, code and test batch reporting processes.

-Provide technical leadership.

-Assist in new development and product support.

-Assist in the preparation of project plans and schedules for 
application systems development efforts.

-Ensure consistency and satisfaction of interface requirements for 
specific newly developing programs with other new and existing programs 
and systems within designated application systems.

-Create and maintain source code management tools.

-Prepare application program unit test data.

-Coordinate testing activities for designated programs within assigned 
project(s), as required.

-Archive code.

-Package releases.

-Analyze embedded programs for performance, and recommend ways to 
improve them.

-Review performance recommendations of others.

-Write and test programs to benchmark performance.

-Create job schedule.

-Interface with users at all levels of the corporation.

-Perform enhancements.

-Fix bugs.

-Resolve coding issues for existing applications.

-Assist in monitoring assigned organization development projects to 
ensure consistency and satisfaction of interface requirements for 
specific newly developing systems.

-Analyze user requirements for new projects and enhancements to existing 
applications Required Technical Skills:

-Pick Basic Programming (4 yrs.)

-Documentation (4 yrs.)

Desired:

-Visual Basic

-MS Access

-SQL Server

 

 

 

Anticipating  your earliest reply.

 

Regards,

Payal

22nd Century Tech

6099451182

[EMAIL PROTECTED]
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UV and XML Schema

2005-09-20 Thread George Gallen
If we could get more LUGs interested in the UV PE (under linux)
that could help, but the problem here is the MySQL seems to have
a better foothold with the PHP/ASP/CGI for web integration.

Personnally, I'm working on my own web/cgi/uv gateway for personal
use.

I tried to get my local UG to see if anyone was interested in an
install/talk regarding UV PE, and didn't get much response (actually
no response :( ).

I think once more of the public were to use PE for home use then there
might be more interest in a users manual/programming manual

Until UV can work with the ease that perl/MySQL is integrated for
non professional use (there are lots-o- free code for MySQL), very
little for integrating UV.

Of course, if we were willing to foot the bill for the printing expense,
  then I'm sure they would be glad to produce the book regardless of
  demand:)

George


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Results
Sent: Tuesday, September 20, 2005 3:37 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] UV and XML Schema


George,
I made that point as well. Tim's position is very simple: If I print 
it, I need to know it will be purchased. The IBM name increases 
visibility, but he needs to have some basis for believing that sales 
will follow from publication. We are a notoriously 'penny aware' market.

 - Charles Barouch
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] UV and XML Schema

2005-09-20 Thread Clifton Oliver
Uh, n.  It would have to be printing expense, plus overhead, plus  
profit margin. They may endorse Open Source, but they are not a non- 
for-profit company. grin



--

Regards,

Clif



On Sep 20, 2005, at 1:05 PM, George Gallen wrote:

Of course, if we were willing to foot the bill for the printing  
expense,

  then I'm sure they would be glad to produce the book regardless of
  demand:)

---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Are there any UniVerse / U2 Basic Language Self-Study materials? {Unclassified}

2005-09-20 Thread Ray Wurlod
Is PROF still out there and, if so, can someone who knows advise how to get a 
legal copy?
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] LPTR / SETPTR / landscape orientation example

2005-09-20 Thread Paul Trebbien
Hi Andy,
Looks like several posts, did you resolve this?

I saw a couple of suggestions in the emails, here's my 2 cents for a
program that will set the setting for an HP Laserjet.  Note, we have a
printer definitions files where you enter the 'hex' codes for the escape
sequences to setup the printer and a hex escape sequence to return the
printer to the default settings.  This is very nice as the user logs on he
has a default printer, he can change the printer (from a menu), or a process
can be defined to use only the specified printer.  Anyway, when user prints
the 'software' know which printer is to be used and sends the 'setup' escape
sequence and when the print job is complete the 'software' sends the 'reset'
escape sequence to the printer.
Here is an example program for this and at the end a list of hex
commands for a few HP Laserjet and Epson LQ printers - these are old lists
and hopefully contain the correct codes.

** PROGRAM : SETUP.HP.LASERJET
** PURPOSE : Send Escape Codes to HP LaserJet
**
INPUT ANS
**
GOT.CODE=0
BEGIN CASE
  CASE ANS=L ; CODE=1B266C314F ; GOT.CODE=1 ;* Set Landscape mode
  CASE ANS=P ; CODE=1B266C304F ; GOT.CODE=1 ;* Set Portrait mode
  CASE ANS=R ; CODE=1B45   ; GOT.CODE=1 ;* Reset to Default
  CASE 1
END CASE
IF GOT.CODE THEN
  PRINT ICONV(CODE,'MX'):
END
*
END




HP LASERJET
HEX COMMAND: DESCRIPTION:
1B45Reset
1B266C314F  Landscape
1B266C304F  Portrait 
1B283855 HP Roman8
1B28733070  Fixed Spacing
31302E30306810.00 Characters per Inch
31322E3076  12.0 Point Size
3073Upright Style
3062Normal Stroke Weight
3354Courier Typeface
1B266C3644  6 Lines per Inch
1B266C3145  1 line Top Margin
1B266C34394649 lines Text Length
1B266C36344664 lines Text Length

EPSON LQ and compatible printers
HEX COMMAND: DESCRIPTION:
Here is a breakdown of what each of these codes mean:
1B40  RESET/INITIALIZE PRINTER
1B50  SELECT PICA PRINT (10 CPI)
1B0F  SELECT COMPRESSED PRINT (17 CPI)
1B7830 == SELECT DRAFT FONT
1B7831 == SELECT NLQ (NEAR-LETTER-QUALITY) FONT
1B4315 == SET 21 LINES/PAGE (WHERE 15 HEX = 21 DEC)
1B4316 == SET 22 LINES/PAGE (WHERE 16 HEX = 22 DEC)
1B4321 == SET 33 LINES/PAGE (WHERE 21 HEX = 33 DEC)
1B432A == SET 42 LINES/PAGE (WHERE 2A HEX = 42 DEC)
1B4333 == SET 51 LINES/PAGE (WHERE 33 HEX = 51 DEC)
1B433C == SET 60 LINES/PAGE (WHERE 3C HEX = 60 DEC)
1B4342 == SET 66 LINES/PAGE (WHERE 42 HEX = 66 DEC)
1B4F  DISABLE SKIP OVER PERFORATION MODE
0D == CARRIAGE RETURN (FLUSH BUFFER, PROCESS COMMAND)

An example of a program to set an HP Laserjet printer to Landscape and then
to Reset printer back:




 Paul Trebbien
 Kore Technologies, Senior Support Tech. 
 Solutions that work. People who care.
 V 858.678.0030 F 858.300.2600 W koretech.com
 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Andy Pflueger
Sent: Monday, September 19, 2005 5:26 AM
To: U2 User Group Mailing List
Subject: [U2] LPTR / SETPTR / landscape orientation example


Hi gang,

I'm in the process of tweaking one of our reports which use a LIST ...
LPTR command line to spool the output to the default printer. However, the
results are too wide for portrait orientation and was wanting to find a way
to set the orientation with SETPTR prior to the execution of the LIST
statement.

I tried to use the following statement but that doesn't seem to change the
default orientation of the printer:

UDTEXECUTE 'SETPTR 0,1,,Orientation=LANDSCAPE' CAPTURING ASPMSG

More code pasted below:

095: *
096: *-- SELECTION
097: *
098: PRINT @(0,21):@(-4):Sort/Select in progress...
099: START.DATE=OCONV(START.DATE,'D2/')
100: END.DATE=OCONV(END.DATE,'D2/')
101: INIT.CMD='SELECT JOB.MATL WITH'
102: IF START.PERIOD # END.PERIOD THEN
103: INIT.CMD := ' CONO_WPER GE ':CONO:START.PERIOD:' AND WITH CONO_WPER
LE ':CONO:END.PERIOD:''
104: END ELSE
105: INIT.CMD := ' CONO_WPER EQ ':CONO:START.PERIOD:''
106: END
107: UDTEXECUTE INIT.CMD CAPTURING ASPMSG
108: *
109: UDTEXECUTE 'SETPTR 0,1,,Orientation=LANDSCAPE' CAPTURING ASPMSG
110: CMD = 'LIST JOB.MATL BY CTR BY JOB BY PERIOD BY DATE BY TRANS WITH'
111: IF DEPT.IN http://DEPT.IN # 'ALL' THEN
112: CMD:=' JMT.DEPT = ':DEPT.IN:''
113: IF DEPT.IN http://DEPT.IN = '23' THEN
114: CMD:=' AND WITH GJOB.CHECK # '
115: CMD:=' AND WITH P.QTY  0'
116: END
117: END
118: IF START.DATE NE END.DATE THEN
119: CMD:=' AND WITH DATE GE ':START.DATE:' AND WITH DATE LE ':END.DATE:
''
120: END ELSE
121: CMD:=' AND WITH DATE EQ ':START.DATE:''
122: END
123: IF BEG.JOB.NUM # ALL THEN
124: CMD:=' AND WITH JOB GE ':BEG.JOB.NUM:' AND WITH JOB LE ':
END.JOB.NUM:''
125: END
126: CMD:=' ID-SUPP'
127: IF DEPT.IN http://DEPT.IN = 'ALL' THEN
128: CMD:=' BREAK-ON NP-DIV.DESC ':'V':''
129: CMD:=' BREAK-ON NP-JOB.DESC ':'V':''
130: END
131: CMD:=' JOB PROD JMT.R.S.ID 

[U2] LPTR / SETPTR / print from a specific tray

2005-09-20 Thread Burwell, Edward
Hey Paul,  Do you (or anyone else) know how to tell a LaserJet to draw paper
from a specific tray?

-Original Message-
From: Paul Trebbien [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 20, 2005 5:34 PM
To: 'u2-users@listserver.u2ug.org'
Subject: RE: [U2] LPTR / SETPTR / landscape orientation example


Hi Andy,
Looks like several posts, did you resolve this?

I saw a couple of suggestions in the emails, here's my 2 cents for a
program that will set the setting for an HP Laserjet.  Note, we have a
printer definitions files where you enter the 'hex' codes for the escape
sequences to setup the printer and a hex escape sequence to return the
printer to the default settings.  This is very nice as the user logs on he
has a default printer, he can change the printer (from a menu), or a process
can be defined to use only the specified printer.  Anyway, when user prints
the 'software' know which printer is to be used and sends the 'setup' escape
sequence and when the print job is complete the 'software' sends the 'reset'
escape sequence to the printer.
Here is an example program for this and at the end a list of hex
commands for a few HP Laserjet and Epson LQ printers - these are old lists
and hopefully contain the correct codes.

** PROGRAM : SETUP.HP.LASERJET
** PURPOSE : Send Escape Codes to HP LaserJet
**
INPUT ANS
**
GOT.CODE=0
BEGIN CASE
  CASE ANS=L ; CODE=1B266C314F ; GOT.CODE=1 ;* Set Landscape mode
  CASE ANS=P ; CODE=1B266C304F ; GOT.CODE=1 ;* Set Portrait mode
  CASE ANS=R ; CODE=1B45   ; GOT.CODE=1 ;* Reset to Default
  CASE 1
END CASE
IF GOT.CODE THEN
  PRINT ICONV(CODE,'MX'):
END
*
END




HP LASERJET
HEX COMMAND: DESCRIPTION:
1B45Reset
1B266C314F  Landscape
1B266C304F  Portrait 
1B283855 HP Roman8
1B28733070  Fixed Spacing
31302E30306810.00 Characters per Inch
31322E3076  12.0 Point Size
3073Upright Style
3062Normal Stroke Weight
3354Courier Typeface
1B266C3644  6 Lines per Inch
1B266C3145  1 line Top Margin
1B266C34394649 lines Text Length
1B266C36344664 lines Text Length

EPSON LQ and compatible printers
HEX COMMAND: DESCRIPTION:
Here is a breakdown of what each of these codes mean:
1B40  RESET/INITIALIZE PRINTER
1B50  SELECT PICA PRINT (10 CPI)
1B0F  SELECT COMPRESSED PRINT (17 CPI)
1B7830 == SELECT DRAFT FONT
1B7831 == SELECT NLQ (NEAR-LETTER-QUALITY) FONT
1B4315 == SET 21 LINES/PAGE (WHERE 15 HEX = 21 DEC)
1B4316 == SET 22 LINES/PAGE (WHERE 16 HEX = 22 DEC)
1B4321 == SET 33 LINES/PAGE (WHERE 21 HEX = 33 DEC)
1B432A == SET 42 LINES/PAGE (WHERE 2A HEX = 42 DEC)
1B4333 == SET 51 LINES/PAGE (WHERE 33 HEX = 51 DEC)
1B433C == SET 60 LINES/PAGE (WHERE 3C HEX = 60 DEC)
1B4342 == SET 66 LINES/PAGE (WHERE 42 HEX = 66 DEC)
1B4F  DISABLE SKIP OVER PERFORATION MODE
0D == CARRIAGE RETURN (FLUSH BUFFER, PROCESS COMMAND)

An example of a program to set an HP Laserjet printer to Landscape and then
to Reset printer back:




 Paul Trebbien
 Kore Technologies, Senior Support Tech. 
 Solutions that work. People who care.
 V 858.678.0030 F 858.300.2600 W koretech.com
 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Andy Pflueger
Sent: Monday, September 19, 2005 5:26 AM
To: U2 User Group Mailing List
Subject: [U2] LPTR / SETPTR / landscape orientation example


Hi gang,

I'm in the process of tweaking one of our reports which use a LIST ...
LPTR command line to spool the output to the default printer. However, the
results are too wide for portrait orientation and was wanting to find a way
to set the orientation with SETPTR prior to the execution of the LIST
statement.

I tried to use the following statement but that doesn't seem to change the
default orientation of the printer:

UDTEXECUTE 'SETPTR 0,1,,Orientation=LANDSCAPE' CAPTURING ASPMSG

More code pasted below:

095: *
096: *-- SELECTION
097: *
098: PRINT @(0,21):@(-4):Sort/Select in progress...
099: START.DATE=OCONV(START.DATE,'D2/')
100: END.DATE=OCONV(END.DATE,'D2/')
101: INIT.CMD='SELECT JOB.MATL WITH'
102: IF START.PERIOD # END.PERIOD THEN
103: INIT.CMD := ' CONO_WPER GE ':CONO:START.PERIOD:' AND WITH CONO_WPER
LE ':CONO:END.PERIOD:''
104: END ELSE
105: INIT.CMD := ' CONO_WPER EQ ':CONO:START.PERIOD:''
106: END
107: UDTEXECUTE INIT.CMD CAPTURING ASPMSG
108: *
109: UDTEXECUTE 'SETPTR 0,1,,Orientation=LANDSCAPE' CAPTURING ASPMSG
110: CMD = 'LIST JOB.MATL BY CTR BY JOB BY PERIOD BY DATE BY TRANS WITH'
111: IF DEPT.IN http://DEPT.IN # 'ALL' THEN
112: CMD:=' JMT.DEPT = ':DEPT.IN:''
113: IF DEPT.IN http://DEPT.IN = '23' THEN
114: CMD:=' AND WITH GJOB.CHECK # '
115: CMD:=' AND WITH P.QTY  0'
116: END
117: END
118: IF START.DATE NE END.DATE THEN
119: CMD:=' AND WITH DATE GE ':START.DATE:' AND WITH DATE LE ':END.DATE:
''
120: END ELSE
121: CMD:=' AND WITH DATE EQ ':START.DATE:''
122: END

Re: [U2] Are there any UniVerse / U2 Basic Language Self-Study materials? {Unclassified}

2005-09-20 Thread Bruce Nichol

Goo'day, Ray,

At 07:31 21/09/05 +1000, you wrote:

Is PROF still out there and, if so, can someone who knows advise how to 
get a legal copy?


Gosh!   Haven't seen or heard of, or heard from, Warren Dickens in 
years!   More years than I care to think about.



---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.3/107 - Release Date: 20/09/05




--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.3/107 - Release Date: 20/09/05


Regards,

Bruce Nichol
Talon Computer Services
ALBURYNSW 2640
Australia

http://www.taloncs.com.au

Tel: +61 (0)411149636
Fax: +61 (0)260232119

If it ain't broke, fix it till it is! 



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.3/107 - Release Date: 20/09/05
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] LPTR / SETPTR / print from a specific tray

2005-09-20 Thread Bruce Nichol

Goo'day,

At 18:22 20/09/05 -0400, you wrote:


Hey Paul,  Do you (or anyone else) know how to tell a LaserJet to draw paper
from a specific tray?


We've been using:

0040:  LOWER.TRAY = ESC:'l5H'
0041:  UPPER.TRAY = ESC:'l1H'
0042: *

(that's a lower-case L  in there)

HTH, in some way.


-Original Message-
From: Paul Trebbien [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 20, 2005 5:34 PM
To: 'u2-users@listserver.u2ug.org'
Subject: RE: [U2] LPTR / SETPTR / landscape orientation example


Hi Andy,
Looks like several posts, did you resolve this?

I saw a couple of suggestions in the emails, here's my 2 cents for a
program that will set the setting for an HP Laserjet.  Note, we have a
printer definitions files where you enter the 'hex' codes for the escape
sequences to setup the printer and a hex escape sequence to return the
printer to the default settings.  This is very nice as the user logs on he
has a default printer, he can change the printer (from a menu), or a process
can be defined to use only the specified printer.  Anyway, when user prints
the 'software' know which printer is to be used and sends the 'setup' escape
sequence and when the print job is complete the 'software' sends the 'reset'
escape sequence to the printer.
Here is an example program for this and at the end a list of hex
commands for a few HP Laserjet and Epson LQ printers - these are old lists
and hopefully contain the correct codes.

** PROGRAM : SETUP.HP.LASERJET
** PURPOSE : Send Escape Codes to HP LaserJet
**
INPUT ANS
**
GOT.CODE=0
BEGIN CASE
  CASE ANS=L ; CODE=1B266C314F ; GOT.CODE=1 ;* Set Landscape mode
  CASE ANS=P ; CODE=1B266C304F ; GOT.CODE=1 ;* Set Portrait mode
  CASE ANS=R ; CODE=1B45   ; GOT.CODE=1 ;* Reset to Default
  CASE 1
END CASE
IF GOT.CODE THEN
  PRINT ICONV(CODE,'MX'):
END
*
END




HP LASERJET
HEX COMMAND: DESCRIPTION:
1B45Reset
1B266C314F  Landscape
1B266C304F  Portrait
1B283855 HP Roman8
1B28733070  Fixed Spacing
31302E30306810.00 Characters per Inch
31322E3076  12.0 Point Size
3073Upright Style
3062Normal Stroke Weight
3354Courier Typeface
1B266C3644  6 Lines per Inch
1B266C3145  1 line Top Margin
1B266C34394649 lines Text Length
1B266C36344664 lines Text Length

EPSON LQ and compatible printers
HEX COMMAND: DESCRIPTION:
Here is a breakdown of what each of these codes mean:
1B40  RESET/INITIALIZE PRINTER
1B50  SELECT PICA PRINT (10 CPI)
1B0F  SELECT COMPRESSED PRINT (17 CPI)
1B7830 == SELECT DRAFT FONT
1B7831 == SELECT NLQ (NEAR-LETTER-QUALITY) FONT
1B4315 == SET 21 LINES/PAGE (WHERE 15 HEX = 21 DEC)
1B4316 == SET 22 LINES/PAGE (WHERE 16 HEX = 22 DEC)
1B4321 == SET 33 LINES/PAGE (WHERE 21 HEX = 33 DEC)
1B432A == SET 42 LINES/PAGE (WHERE 2A HEX = 42 DEC)
1B4333 == SET 51 LINES/PAGE (WHERE 33 HEX = 51 DEC)
1B433C == SET 60 LINES/PAGE (WHERE 3C HEX = 60 DEC)
1B4342 == SET 66 LINES/PAGE (WHERE 42 HEX = 66 DEC)
1B4F  DISABLE SKIP OVER PERFORATION MODE
0D == CARRIAGE RETURN (FLUSH BUFFER, PROCESS COMMAND)

An example of a program to set an HP Laserjet printer to Landscape and then
to Reset printer back:




 Paul Trebbien
 Kore Technologies, Senior Support Tech.
 Solutions that work. People who care.
 V 858.678.0030 F 858.300.2600 W koretech.com



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Andy Pflueger
Sent: Monday, September 19, 2005 5:26 AM
To: U2 User Group Mailing List
Subject: [U2] LPTR / SETPTR / landscape orientation example


Hi gang,

I'm in the process of tweaking one of our reports which use a LIST ...
LPTR command line to spool the output to the default printer. However, the
results are too wide for portrait orientation and was wanting to find a way
to set the orientation with SETPTR prior to the execution of the LIST
statement.

I tried to use the following statement but that doesn't seem to change the
default orientation of the printer:

UDTEXECUTE 'SETPTR 0,1,,Orientation=LANDSCAPE' CAPTURING ASPMSG

More code pasted below:

095: *
096: *-- SELECTION
097: *
098: PRINT @(0,21):@(-4):Sort/Select in progress...
099: START.DATE=OCONV(START.DATE,'D2/')
100: END.DATE=OCONV(END.DATE,'D2/')
101: INIT.CMD='SELECT JOB.MATL WITH'
102: IF START.PERIOD # END.PERIOD THEN
103: INIT.CMD := ' CONO_WPER GE ':CONO:START.PERIOD:' AND WITH CONO_WPER
LE ':CONO:END.PERIOD:''
104: END ELSE
105: INIT.CMD := ' CONO_WPER EQ ':CONO:START.PERIOD:''
106: END
107: UDTEXECUTE INIT.CMD CAPTURING ASPMSG
108: *
109: UDTEXECUTE 'SETPTR 0,1,,Orientation=LANDSCAPE' CAPTURING ASPMSG
110: CMD = 'LIST JOB.MATL BY CTR BY JOB BY PERIOD BY DATE BY TRANS WITH'
111: IF DEPT.IN http://DEPT.IN # 'ALL' THEN
112: CMD:=' JMT.DEPT = ':DEPT.IN:''
113: IF DEPT.IN http://DEPT.IN = '23' THEN
114: CMD:=' AND WITH GJOB.CHECK # '
115: CMD:=' AND WITH P.QTY 

RE: [U2] LPTR / SETPTR / print from a specific tray

2005-09-20 Thread gerry-u2ug
all this info is in the 
google :

http://www.artwork.com/support/windows/escape.htm



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Burwell, Edward
Sent: Tuesday, September 20, 2005 06:22 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] LPTR / SETPTR / print from a specific tray


Hey Paul,  Do you (or anyone else) know how to tell a LaserJet to draw paper
from a specific tray?

-Original Message-
From: Paul Trebbien [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 20, 2005 5:34 PM
To: 'u2-users@listserver.u2ug.org'
Subject: RE: [U2] LPTR / SETPTR / landscape orientation example


Hi Andy,
Looks like several posts, did you resolve this?

I saw a couple of suggestions in the emails, here's my 2 cents for a
program that will set the setting for an HP Laserjet.  Note, we have a
printer definitions files where you enter the 'hex' codes for the escape
sequences to setup the printer and a hex escape sequence to return the
printer to the default settings.  This is very nice as the user logs on he
has a default printer, he can change the printer (from a menu), or a process
can be defined to use only the specified printer.  Anyway, when user prints
the 'software' know which printer is to be used and sends the 'setup' escape
sequence and when the print job is complete the 'software' sends the 'reset'
escape sequence to the printer.
Here is an example program for this and at the end a list of hex
commands for a few HP Laserjet and Epson LQ printers - these are old lists
and hopefully contain the correct codes.

** PROGRAM : SETUP.HP.LASERJET
** PURPOSE : Send Escape Codes to HP LaserJet
**
INPUT ANS
**
GOT.CODE=0
BEGIN CASE
  CASE ANS=L ; CODE=1B266C314F ; GOT.CODE=1 ;* Set Landscape mode
  CASE ANS=P ; CODE=1B266C304F ; GOT.CODE=1 ;* Set Portrait mode
  CASE ANS=R ; CODE=1B45   ; GOT.CODE=1 ;* Reset to Default
  CASE 1
END CASE
IF GOT.CODE THEN
  PRINT ICONV(CODE,'MX'):
END
*
END




HP LASERJET
HEX COMMAND: DESCRIPTION:
1B45Reset
1B266C314F  Landscape
1B266C304F  Portrait 
1B283855 HP Roman8
1B28733070  Fixed Spacing
31302E30306810.00 Characters per Inch
31322E3076  12.0 Point Size
3073Upright Style
3062Normal Stroke Weight
3354Courier Typeface
1B266C3644  6 Lines per Inch
1B266C3145  1 line Top Margin
1B266C34394649 lines Text Length
1B266C36344664 lines Text Length

EPSON LQ and compatible printers
HEX COMMAND: DESCRIPTION:
Here is a breakdown of what each of these codes mean:
1B40  RESET/INITIALIZE PRINTER
1B50  SELECT PICA PRINT (10 CPI)
1B0F  SELECT COMPRESSED PRINT (17 CPI)
1B7830 == SELECT DRAFT FONT
1B7831 == SELECT NLQ (NEAR-LETTER-QUALITY) FONT
1B4315 == SET 21 LINES/PAGE (WHERE 15 HEX = 21 DEC)
1B4316 == SET 22 LINES/PAGE (WHERE 16 HEX = 22 DEC)
1B4321 == SET 33 LINES/PAGE (WHERE 21 HEX = 33 DEC)
1B432A == SET 42 LINES/PAGE (WHERE 2A HEX = 42 DEC)
1B4333 == SET 51 LINES/PAGE (WHERE 33 HEX = 51 DEC)
1B433C == SET 60 LINES/PAGE (WHERE 3C HEX = 60 DEC)
1B4342 == SET 66 LINES/PAGE (WHERE 42 HEX = 66 DEC)
1B4F  DISABLE SKIP OVER PERFORATION MODE
0D == CARRIAGE RETURN (FLUSH BUFFER, PROCESS COMMAND)

An example of a program to set an HP Laserjet printer to Landscape and then
to Reset printer back:




 Paul Trebbien
 Kore Technologies, Senior Support Tech. 
 Solutions that work. People who care.
 V 858.678.0030 F 858.300.2600 W koretech.com
 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Andy Pflueger
Sent: Monday, September 19, 2005 5:26 AM
To: U2 User Group Mailing List
Subject: [U2] LPTR / SETPTR / landscape orientation example


Hi gang,

I'm in the process of tweaking one of our reports which use a LIST ...
LPTR command line to spool the output to the default printer. However, the
results are too wide for portrait orientation and was wanting to find a way
to set the orientation with SETPTR prior to the execution of the LIST
statement.

I tried to use the following statement but that doesn't seem to change the
default orientation of the printer:

UDTEXECUTE 'SETPTR 0,1,,Orientation=LANDSCAPE' CAPTURING ASPMSG

More code pasted below:

095: *
096: *-- SELECTION
097: *
098: PRINT @(0,21):@(-4):Sort/Select in progress...
099: START.DATE=OCONV(START.DATE,'D2/')
100: END.DATE=OCONV(END.DATE,'D2/')
101: INIT.CMD='SELECT JOB.MATL WITH'
102: IF START.PERIOD # END.PERIOD THEN
103: INIT.CMD := ' CONO_WPER GE ':CONO:START.PERIOD:' AND WITH CONO_WPER
LE ':CONO:END.PERIOD:''
104: END ELSE
105: INIT.CMD := ' CONO_WPER EQ ':CONO:START.PERIOD:''
106: END
107: UDTEXECUTE INIT.CMD CAPTURING ASPMSG
108: *
109: UDTEXECUTE 'SETPTR 0,1,,Orientation=LANDSCAPE' CAPTURING ASPMSG
110: CMD = 'LIST JOB.MATL BY CTR BY JOB BY PERIOD BY DATE BY TRANS WITH'
111: IF DEPT.IN http://DEPT.IN # 'ALL' THEN
112: CMD:=' 

RE: [U2] sockets

2005-09-20 Thread Tony Gravagno
Cedric Fontaine wrote:
 Tony Gravagno wrote:
 Here is a link to the question and answer.
 http://forums.rainingdata.com/index.php?showtopic=869
 
 Sorry but as a developper of JD3, I disagree that jd3
 cannot be used on live site. Since two years we're using
 jd3 on live sites and it works ! Easily with only 5 jd3
 client, a website is serving about 250.000 pages per
 month. Don't you think that flashconnect is using socket
 to communicate ? 

Cedric is referring to a comment I made at that link.
I don't want to get into a heated discussion about D3 socket connectivity
in a U2 forum, but this is a well known topic which has been discussed
elsewhere and it may affect U2 users who work with sockets too.  If an MV
process dies while it has the handle to a socket server open, the host OS
doesn't know about it immediately and may not be able to release the socket
resources until the MV DBMS is restarted and MV memory and other resources
are released.  That means the one and only port that all users rely on to
connect into goes non-responsive, and you may need to reboot all users in
order to get your connectivity back on one line.  This is entirely
unacceptable.  The fact that MV can't fork or pass handles to child
processes to handle web/socket requests compounds the issue because it
makes all operations single-threaded unless you have client code that's
intelligent enough to do a round-robin among multiple server sockets.
FlashCONNECT acts as a client to a middle-tier server, FC is not a server
at the DBMS level.  You have 64000 socket ports that you can use, so a dead
connection is no big deal unless you lose many of these each day.

D3 *nix behaves better than D3NT in this regard, and Universe and Unidata
will have their own considerations across platforms and releases.  The rule
of thumb is to trust but verify, and don't simply assume that sockets are
a universal solution - pun intended I guess.

Comments from someone with a U2 clue are welcome.

Tony
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UV and XML Schema

2005-09-20 Thread Tony Gravagno
I've seen the other suggestions but I'll add the following:
MS .NET is built on XML.  One of the core functions of this technology is
parsing to/from XML using schema.  Rather than trying to
parse/interpret/generate raw XML on your own, you may want to consider
using free technology that was designed for the purpose, then your
interface to/from U2 is plain text in whatever format you want.  Some of
this is truly as simple as using just a couple lines of code.

Regarding books, I'm not to impressed with the XML Bible which I have on
the shelf in front of me.  I think it was dated as soon as it hit the
shelves.  That's an important point - get something up to date so that you
aren't reading examples of code which the author expects might be valid in
the 0.0.2 release of some new protocol.  This market evolves very quickly.

Tony

George Gallen wrote:
 ok. I've been given the task of trying to output a
 database based on an XML Schema file. (ONIX in
 particular), for edi purposes. 
 
 I've played a little with XML, none at all with schema.
 So I'm looking for a some book titles that will help get
me up to speed something of a reference, but also
 something starts you from scratch. 
 
 If I need to buy two books, fine.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] LPTR / SETPTR / print from a specific tray

2005-09-20 Thread Bob Woodward
One of the programs we use has this line of code in it:

MAN.PAPER.TRAY = CHAR(27):l2G; * SELECT THE MANUAL SOURCE TRAY

It then just does a PRINT MAN.PAPER.TRAY to switch before printing a
preprinted form.  One of the online references I use, and like, has the
command you need.  Just be sure to change the 1 to which ever tray you
want.  Here it is: 
http://printers.necsam.com/public/printers/pclcodes/pcl5hp.htm

Hope that helps.

BobW

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:owner-u2-
 [EMAIL PROTECTED] On Behalf Of Burwell, Edward
 Sent: Tuesday, September 20, 2005 3:22 PM
 To: 'u2-users@listserver.u2ug.org'
 Subject: [U2] LPTR / SETPTR / print from a specific tray
 
 Hey Paul,  Do you (or anyone else) know how to tell a LaserJet to draw
 paper
 from a specific tray?
 
 -Original Message-
 From: Paul Trebbien [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 20, 2005 5:34 PM
 To: 'u2-users@listserver.u2ug.org'
 Subject: RE: [U2] LPTR / SETPTR / landscape orientation example
 
 
 Hi Andy,
   Looks like several posts, did you resolve this?
 
   I saw a couple of suggestions in the emails, here's my 2 cents
for a
 program that will set the setting for an HP Laserjet.  Note, we have a
 printer definitions files where you enter the 'hex' codes for the
escape
 sequences to setup the printer and a hex escape sequence to return the
 printer to the default settings.  This is very nice as the user logs
on he
 has a default printer, he can change the printer (from a menu), or a
 process
 can be defined to use only the specified printer.  Anyway, when user
 prints
 the 'software' know which printer is to be used and sends the 'setup'
 escape
 sequence and when the print job is complete the 'software' sends the
 'reset'
 escape sequence to the printer.
   Here is an example program for this and at the end a list of hex
 commands for a few HP Laserjet and Epson LQ printers - these are old
lists
 and hopefully contain the correct codes.
 
 ** PROGRAM : SETUP.HP.LASERJET
 ** PURPOSE : Send Escape Codes to HP LaserJet
 **
 INPUT ANS
 **
 GOT.CODE=0
 BEGIN CASE
   CASE ANS=L ; CODE=1B266C314F ; GOT.CODE=1 ;* Set Landscape mode
   CASE ANS=P ; CODE=1B266C304F ; GOT.CODE=1 ;* Set Portrait mode
   CASE ANS=R ; CODE=1B45   ; GOT.CODE=1 ;* Reset to Default
   CASE 1
 END CASE
 IF GOT.CODE THEN
   PRINT ICONV(CODE,'MX'):
 END
 *
 END
 
 
 
 
 HP LASERJET
 HEX COMMAND: DESCRIPTION:
 1B45  Reset
 1B266C314FLandscape
 1B266C304FPortrait
 1B283855 HP   Roman8
 1B28733070Fixed Spacing
 31302E303068  10.00 Characters per Inch
 31322E307612.0 Point Size
 3073  Upright Style
 3062  Normal Stroke Weight
 3354  Courier Typeface
 1B266C36446 Lines per Inch
 1B266C31451 line Top Margin
 1B266C343946  49 lines Text Length
 1B266C363446  64 lines Text Length
 
 EPSON LQ and compatible printers
 HEX COMMAND: DESCRIPTION:
 Here is a breakdown of what each of these codes mean:
 1B40  RESET/INITIALIZE PRINTER
 1B50  SELECT PICA PRINT (10 CPI)
 1B0F  SELECT COMPRESSED PRINT (17 CPI)
 1B7830 == SELECT DRAFT FONT
 1B7831 == SELECT NLQ (NEAR-LETTER-QUALITY) FONT
 1B4315 == SET 21 LINES/PAGE (WHERE 15 HEX = 21 DEC)
 1B4316 == SET 22 LINES/PAGE (WHERE 16 HEX = 22 DEC)
 1B4321 == SET 33 LINES/PAGE (WHERE 21 HEX = 33 DEC)
 1B432A == SET 42 LINES/PAGE (WHERE 2A HEX = 42 DEC)
 1B4333 == SET 51 LINES/PAGE (WHERE 33 HEX = 51 DEC)
 1B433C == SET 60 LINES/PAGE (WHERE 3C HEX = 60 DEC)
 1B4342 == SET 66 LINES/PAGE (WHERE 42 HEX = 66 DEC)
 1B4F  DISABLE SKIP OVER PERFORATION MODE
 0D == CARRIAGE RETURN (FLUSH BUFFER, PROCESS COMMAND)
 
 An example of a program to set an HP Laserjet printer to Landscape and
 then
 to Reset printer back:
 
 
 
 
  Paul Trebbien
  Kore Technologies, Senior Support Tech.
  Solutions that work. People who care.
  V 858.678.0030 F 858.300.2600 W koretech.com
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Andy Pflueger
 Sent: Monday, September 19, 2005 5:26 AM
 To: U2 User Group Mailing List
 Subject: [U2] LPTR / SETPTR / landscape orientation example
 
 
 Hi gang,
 
 I'm in the process of tweaking one of our reports which use a LIST
...
 LPTR command line to spool the output to the default printer.
However,
 the
 results are too wide for portrait orientation and was wanting to find
a
 way
 to set the orientation with SETPTR prior to the execution of the LIST
 statement.
 
 I tried to use the following statement but that doesn't seem to change
the
 default orientation of the printer:
 
 UDTEXECUTE 'SETPTR 0,1,,Orientation=LANDSCAPE' CAPTURING ASPMSG
 
 More code pasted below:
 
 095: *
 096: *-- SELECTION
 097: *
 098: PRINT @(0,21):@(-4):Sort/Select in progress...
 099: START.DATE=OCONV(START.DATE,'D2/')
 100: END.DATE=OCONV(END.DATE,'D2/')
 101: INIT.CMD='SELECT 

Re: [U2] LPTR / SETPTR / landscape orientation example

2005-09-20 Thread Andy Pflueger
Thanks for much for the many suggestions on this thread. Unfortunately, been
so swamped I hadn't had a chance to dive back into this report...one of
those things...step away for a day or so and go back to it. ;)

I'm sure with all the posts I have received so far I'll have enough (surely)
to accomplish what I'm trying.

Andy
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


[U2] Ronald Cripps has a new email address of [EMAIL PROTECTED]

2005-09-20 Thread Ronald Cripps
I will be out of the office starting  09/20/2005 and will not return until
12/31/2005.

Well not really...  My email address has changed with the DST acquisition
of CSC Health Plan Solutions.  My new email address is
[EMAIL PROTECTED]  Please send the original and all future
e-mails to my new address to help eliminate any delays in the forwarding of
the email to my new address.  My apologies for any inconvenience you may
have.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UV and XML Schema

2005-09-20 Thread Webmaster
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Tony Gravagno
 Sent: Tuesday, September 20, 2005 7:57 PM
 To: u2-users@listserver.u2ug.org
 Subject: RE: [U2] UV and XML Schema


 I've seen the other suggestions but I'll add the following:
 MS .NET is built on XML.  One of the core functions of this technology is
 parsing to/from XML using schema.  Rather than trying to
 parse/interpret/generate raw XML on your own, you may want to consider
 using free technology that was designed for the purpose, then your
 interface to/from U2 is plain text in whatever format you want.  Some of
 this is truly as simple as using just a couple lines of code.

  Gah. .NET is wasted data bloat when you really need a specific and
potentially static XML format for data transport. Just because .NET uses XML
as a layer doesn't make it the best fit for all XML solutions. You know that
better than anyone, T! :P  Plus, there's more XML development tools out
there than the .NET development suite and the .NET framework for Windows.
PHP and Perl both have native XML handling modules that work either as DOM
or SAX parsers and validators. There's the Xerces and Cocoon library sets
for lower level languages. I implemented cXML integration long before .NET
was even considered a technology in Windows, using samples from the Xerces
ANSI C dev kit and some dataBASIC.


 Regarding books, I'm not to impressed with the XML Bible which I have on
 the shelf in front of me.  I think it was dated as soon as it hit the
 shelves.  That's an important point - get something up to date so that you
 aren't reading examples of code which the author expects might be valid in
 the 0.0.2 release of some new protocol.  This market evolves very quickly.

 I don't have the XML Bible and I probably won't buy it. That's like buying
a book on buying books. It's really pointless unlesss you have no clue what
XML really is. If you know what XML is, you can find tools to help you
design a solution or buy the solution you need to make something happen.
Regardless, data format specs are typically backwards compatible. The key is
to find out what your requirements are, to meet guidelines for the
implementation. If you can meet the specs for the current guidelines, then
make sure that your design is considerate of additional elements and
attributes. Anytime you solidify your design around a single document spec,
you'll be stuck there forever or until someone has the guts to rip it all
apart and rebuild it.


 Tony

 George Gallen wrote:
  ok. I've been given the task of trying to output a
  database based on an XML Schema file. (ONIX in
  particular), for edi purposes.
 
  I've played a little with XML, none at all with schema.
  So I'm looking for a some book titles that will help get
 me up to speed something of a reference, but also
  something starts you from scratch.
 
  If I need to buy two books, fine.

Check out this MARC to ONIX translation map for XML reference. There is a
MARC::XML module for Perl, if the data you're access is in MARC format.
http://www.loc.gov/marc/onix2marc.html#mapping

There is a raw XML parser on http://picksource.com, which I posted a long
time ago. It translates the elements, attributes/values, and element values
into a 3-dimensional MV array. Patrick Payne posted a GPL XML tool kit,
which provides node extraction, node insertion, and other useful functions.

Glen
http://mvdevcentral.com
http://picksource.com
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/