Jump to content


Photo
- - - - -

VMS Output truncated at 250 bytes


5 replies to this topic

#1 javier.perez

javier.perez

    Newbie

  • Members
  • Pip
  • 4 posts
  • Gender:Male
  • Location:Riverside, CA

Posted 06 July 2004 - 07:26 PM

Hi All.

I'm writing a very long string to a text file and to an oracle table. They get truncated at 250 bytes. The string within PRO-IV is ok - it's defined with plenty of space and I can see it via UMSG.

Does anyone have a workaround to this VMS issue?

PRO-IV 4.6 VMS 5.5

Thanks,
Javier

#2 Tony Waszkiewicz

Tony Waszkiewicz

    Expert

  • Members
  • PipPipPipPip
  • 174 posts
  • Gender:Male
  • Location:London, United Kingdom

Posted 07 July 2004 - 08:26 AM

Javier,

how have you defined the string?

#3 Chris Mackenzie

Chris Mackenzie

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 368 posts
  • Gender:Male
  • Location:Bristol, United Kingdom

Posted 07 July 2004 - 09:19 AM

Most likely you will have to work with 250 byte chunks on the text file but > 250
should work ok with Oracle.
The content and views expressed in this message are those
of the poster and do not represent those of any organisation.

#4 Joseph Bove

Joseph Bove

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 756 posts
  • Gender:Male
  • Location:Ramsey, United States

Posted 07 July 2004 - 03:34 PM

Javiar,

On some of the older platforms, I saw a problem with scratch variables not reliably holding data after the 250th character.

A test of this:

LOGIC 0

DEFINE $SCRATCH (,255)

$SCRATCH(249, 253) = 'Hello'
UMSG($SCRATCH(249,253), -1)

The same problem did not appear for file variables, only scratches.

If this is your problem, there are 2 work-arounds

1) Use a file variable instead
2) Use multiple scratch variables (I know - ick!)

I haven't retested this in 5.5

hth,

Joseph

#5 javier.perez

javier.perez

    Newbie

  • Members
  • Pip
  • 4 posts
  • Gender:Male
  • Location:Riverside, CA

Posted 10 September 2004 - 05:24 AM

Sorry I never responded. I was out because we were having a baby and had been busy ever since.

Thank you all for your replies and your help!

javier

Edited by javier.perez, 10 September 2004 - 05:25 AM.


#6 Joseph Bove

Joseph Bove

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 756 posts
  • Gender:Male
  • Location:Ramsey, United States

Posted 10 September 2004 - 04:27 PM

Javier,

Congratulations on the addition to your family.

I hope that you did not try to negotiate with ProIV to pay for his or her college if you named your child VIP, Concerto or Bus & Tasks...

Regards,

Joseph



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users