Veilleux, Jon L wrote:
Thanks Lizette, I just thought that it would be nice to see some information about how the issue was resolved.
It was included in the post:
Ah! That's got it! Thanks, Keven, and Robert. Once I added in a
length modifier, it works!
Jon L. Veilleux
[email protected]
(860) 636-2683
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of
Lizette Koehler
Sent: Tuesday, November 24, 2009 8:17 AM
To: [email protected]
Subject: Re: What's up with WTO? - solved
Jon,
A Length was added to the MVC command. Otherwise the default length was used.
mvc Detailmsg,sDetailmsg
Steve provided a sample program
Here's an even more stripped down version, complete code:
*PROCESS COMPAT(NOCASE,MACROCASE),RENT
sysstate archlvl=2
B34TEST RSECT
B34TEST AMODE 31
B34TEST RMODE ANY
stm 14,12,12(13)
larl 12,DATA
using DATA,12
l 2,0(,1)
GETMAIN R,LV=worksize
xc 0(144,1),0(1)
st 13,4(,1)
lr 13,1
using wareas,13
mvc Oline,sOline
mvc Detailmsg,sDetailmsg <--- Length added here
la 2,Oline
sr 0,0
wto text=(2),routcde=(11),mf=(e,Detailmsg)
lr 1,13
l 0,fsize
l 13,4(13)
freemain r,lv=(0),a=(1)
lm 14,12,12(13)
br 14
data ds 0f
fsize dc a(worksize)
sOline ds 0cl90
dc h'88'
dc c'Input CCSID: '
ds cl5
dc cl3' '
dc c'Generated Base36 tag: '
ds cl3
dc cl3' '
dc c'Returned CCSID based on tag: '
ds cl5
dc cl5' '
sDetailmsg wto text=,routcde=(11),mf=l
ltorg
wareas dsect
save ds 36f'0'
Oline ds 0cl90
dc h'88'
dc c'Input CCSID: '
CP ds cl5
dc cl3' '
dc c'Generated Base36 tag: '
DIGS ds cl3
dc cl3' '
dc c'Returned CCSID based on tag: '
CCSID ds cl5
dc cl5' '
Detailmsg wto text=,routcde=(11),mf=l
worksize equ *-save
END B34TEST
Lizette
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of
Veilleux, Jon L
Sent: Tuesday, November 24, 2009 8:08 AM
To: [email protected]
Subject: Re: What's up with WTO? - solved
That doesn't help us here.....
Jon L. Veilleux
[email protected]
(860) 636-2683
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of
Edward Jaffe
Sent: Monday, November 23, 2009 5:05 PM
To: [email protected]
Subject: Re: What's up with WTO? - solved
Mark Zelden wrote:
On Mon, 23 Nov 2009 13:46:15 -0700, Steve Comstock
<[email protected]> wrote:
Ah! That's got it! Thanks, Keven, and Robert. Once I added in a
length modifier, it works!
Wow! I didn't know IBM-MAIN even had clairvoyant people monitoring
the list. What a bonus that they understand assembler! :-)
Answered on ASSEMBLER-LIST.
--
Edward E Jaffe
Phoenix Software International, Inc
5200 W Century Blvd, Suite 800
Los Angeles, CA 90045
310-338-0400 x318
[email protected]
http://www.phoenixsoftware.com/
--
Kind regards,
-Steve Comstock
The Trainer's Friend, Inc.
303-393-8716
http://www.trainersfriend.com
z/OS Application development made easier
* Our classes include
+ How things work
+ Programming examples with realistic applications
+ Starter / skeleton code
+ Complete working programs
+ Useful utilities and subroutines
+ Tips and techniques
==> Ask about being added to our opt-in list: <==
==> * Early announcement of new courses <==
==> * Early announcement of new techincal papers <==
==> * Early announcement of new promotions <==
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html