× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: A little RPG and a little CGI/Net.Data question.
  • From: "Stone, Brad V (TC)" <bvstone@xxxxxxxxxxxxxx>
  • Date: Fri, 14 Apr 2000 10:43:17 -0500

Hi Dave.

Well, I'm not Mr. Net.Data, but I can hold my own with CGI (eRPG).

I have a similar application, only I use this text to display again on the
web, so I don't worry about splitting up the data.  I simply store the data
in a variable length text field, and display it again and it will be
formatted exactly as entered when re-displayed on the web page.  (It's a
forum application).

If you are saying that there are no control characters in your string, then
it will be up to you to break these up any way you want.  Just as if someone
entered the long string in on a DDS screen.

You no doubt will not see the eol characters unless the user hits enter
while entering the text.  Rows on a text area cannot be seperated into
"rows" very easily.  That's HTML's fault, not Net.Data or RPG's.  To HTML,
it is one long string, not a set of rows and columns.

Sorry I couldn't be of more help...

Brad

> -----Original Message-----
> From: dmosley@dancik.com [mailto:dmosley@dancik.com]
> Sent: Friday, April 14, 2000 8:27 AM
> To: RPG400-L@midrange.com
> Cc: terry@dancik.com
> Subject: A little RPG and a little CGI/Net.Data question.
> 
> 
> 
> 
> Alright Mr. Stone, let's see you shine.
> 
> Here's my situation.  I am creating a <TEXTAREA COLS=50 
> ROWS=10>, in HTML
> obviously,  to allow users to enter comments in.  Once the 
> user has submitted
> his/her entree, and continues to the next URL, which is 
> accessed via Net.Data, I
> do a @DTW_directcall function that passes the users comments 
> and the comments
> length to an RPGLE program, using simple parameter pass.  The 
> program  should
> read the comments entered and break them down and written to 
> a physical file.
> The file layout is as such.  SEQ#- 3,0 & TEXT - 50a.  The 
> comments should be
> broken  so that each row entered would be considered a SEQ# 
> increment.  My
> problem is breaking down the comments, once it is passed to 
> the RPGLE program.
> I created a procedure that I thought would break it down 
> properly, BUT, the
> comments value being passed to the program does not appear to 
> have Carriage
> Returns (\n)(x'15'), so I can't figure out were to %subst the 
> comments to a new
> record.
> 
> 
> Ex) TEXTAREA :                                PHYSICAL FILE 
> RECORDS (What
> records should be written)
>             COMMENTS                               SEQ#      TEXT
>      ROW 1 :  This is were the comments would go.            
> 1    This is were
> the comments would go
>      ROW 2 :
>      ROW 3 : This would be considered SEQ# 3.                
> 3    This would be
> considered SEQ# 3.
>      ROW 4:
>      ROW 5: And this would be considered SEQ# 5.             
> 5    And this would
> be considered SEQ# 5.
> 
> 
> I hope that this explained it well enough for you all.  Any 
> suggestions would be
> greatful.
> thanks
> dave
> 
> 
> 
> 
> 
> +---
> | This is the RPG/400 Mailing List!
> | To submit a new message, send your mail to RPG400-L@midrange.com.
> | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to 
> RPG400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator: 
> david@midrange.com
> +---
> 
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.