socket connection VM <=> Windows in REXX handling the new line character in EBCDIC

socket connection VM <=> Windows in REXX handling the new line character in EBCDIC

Post by sstef » Thu, 29 Oct 2009 02:14:29


my REXX exec will work as a client I need to something like this to
the Windows server

text:
" this is line first"
"this is line second"


I can connect to the server but i am not able to send the text with
the concept of new line.
I want the EBCDIC new line concept to be transale in the "\n" ASCII
new line

I don't know how to set a new line in EBCDIC ....NEWLINE below in the
example

so how to create a stinng in REXX that contains the new line in it?
something like :

....
mystring = " this is line first" NEWLINE
mystring = "this is line second"
......

My plan is to use
.......
Socket('SetSockOpt',newsocketid,'SOL_SOCKET','SO_ASCII','On')
........
and then
........
Socket('Write', newsocketid, myString)
......
 
 
 

socket connection VM <=> Windows in REXX handling the new line character in EBCDIC

Post by wolfgang.r » Thu, 29 Oct 2009 05:19:56


> ....... >> Socket('SetSockOpt',newsocketid,'SOL_SOCKET','SO_ASCII','On')> > .......>
> and the>
> .....>.
> Socket('Write', newsocketid, myStri>g)
> ......

NEWLINE = '0D0A'x
(and btw. this is AFAICR the canonical http-linebreak (html might be
'0D'x, '0Ax, '0D0A'x,
but for mainframe, see http://www.yqcomputer.com/ )).

If your text is precomposed, try changestr('15'x, myString, '0d0a'x)

hth
Wolfgang

 
 
 

socket connection VM <=> Windows in REXX handling the new line character in EBCDIC

Post by sstef » Thu, 29 Oct 2009 11:28:23

On Oct 27, 4:19m, "wolfgang.riedel" < XXXX@XXXXX.COM >


> > ....... >>>> Socket('SetSockOpt',newsocketid,'SOL_SOCKET','SO_ASCII','On')> > > .......> >> > and the> >> > .....>.> > > Socket('Write', newsocketid, myStri>g>
> > ..>..>
>
> NEWLINE = '0D>A'x
> (and btw. this is AFAICR the canonical http-linebreak (html migh> be
> '0D'x, '0Ax, '0D0>'x,
> but for mainframe, see http://www.yqcomputer.com/ ;))>
>
> If your text is precomposed, try changestr('15'x, myString, '0d0>'x>
>
>>hth
> Wolfgang- Hide quoted te>t >
>
> - Show quoted text -

thanks that worked