Export Data

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
mightycpa
Automation Wizard
Posts: 343
Joined: Mon Jan 12, 2004 4:07 pm
Location: Vienna, VA

Export Data

Post by mightycpa » Sat Apr 08, 2017 12:30 am

Hi,

I'm wondering how to use ExportData with "on the fly" values. I'm building a little ASCII to EBCDIC translator. The translator is in VBScript, and take ASCII input and return EBCDIC. I need a way to feed this data to the label.

Here's my little experiment:

Code: Select all

/**************************************************
what I want to do
**************************************************/
VBStart

Function Fakeit(some_str)
     Fakeit=f9f8700
EndFunction

VBEnd

VBEval>Fakeit,897,vardata
ExportData>customdata,E:\Documents\BPS\CLSDOWN\ebcdic\test1.dat

customdata:
%vardata%

/**************************************************
what I'm able to do
**************************************************/

ExportData>fixeddata,E:\Documents\BPS\CLSDOWN\ebcdic\test2.dat

fixeddata:
f9f8f700
When I look at the two files, I get two different results.

test1.dat = 68c0 c300 <== INCORRECT
test2.dat = f9f8 f700 <== CORRECT

How can I feed this data to the label?

Thanks
Last edited by mightycpa on Mon Apr 10, 2017 3:09 pm, edited 1 time in total.
"A facility for quotation covers the absence of original thought." - Lord Peter Wimsey

mightycpa
Automation Wizard
Posts: 343
Joined: Mon Jan 12, 2004 4:07 pm
Location: Vienna, VA

Re: Export Data - BUMP!

Post by mightycpa » Mon Apr 10, 2017 2:36 pm

Writing the file using VBScript is beginning to look promising.
"A facility for quotation covers the absence of original thought." - Lord Peter Wimsey

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts