Author Topic: ARSDOC Get Line Data Output Unreadable  (Read 8071 times)

app1mvf

  • Guest
ARSDOC Get Line Data Output Unreadable
« on: May 20, 2013, 05:35:35 AM »
Hello, I was wondering if someone could help me out. I am trying to do a arsdoc get on a line data application group to extract multiple report files into one large readable file.... The problem I am having is that the output from cmod is unreadable. I have tried numerous code page conversions on the file but regardless whatever I try I am still left with garbage characters in the output file. Is there a switch or flag I am missing to make the output human readable or is there a convertion command that I can run?

Sameple ARSDOC GET
Code: [Select]
/opt/ondemand/bin/arsdoc get -h 192.168.1.65 -u EPIC -p PASSWORD -G SAMPLE -v -o /TEMP_WORKAREA/LINEDATA/CUST_LINEDATA.txt -c -i "where AccountNumber='82843723' AND InvoiceDate BETWEEN 15592 AND 15592"
Sample File Conversion
Code: [Select]
/usr/bin/iconv -f cp037 -t iso8859-1 /TEMP_WORKAREA/LINEDATA/CUST_LINEDATA.txt > /TEMP_WORKAREA/LINEDATA/CUST_LINEDATA.txtconverted
Thank you
« Last Edit: May 20, 2013, 05:45:05 AM by app1mvf »

jeffs42885

  • Guest
Re: ARSDOC Get Line Data Output Unreadable
« Reply #1 on: May 20, 2013, 10:52:12 AM »
Did you try .out instead of .txt?

app1mvf

  • Guest
Re: ARSDOC Get Line Data Output Unreadable
« Reply #2 on: May 20, 2013, 10:59:57 AM »
I just gave that a try and it didn?t make any difference. 
Any other ideas?

Thank you

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: ARSDOC Get Line Data Output Unreadable
« Reply #3 on: May 21, 2013, 10:05:00 AM »
What's the code page specified in the application that ingested this data?

You can paste in the Application configuration data to give us everything...

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

app1mvf

  • Guest
Re: ARSDOC Get Line Data Output Unreadable
« Reply #4 on: May 21, 2013, 11:03:45 AM »
Sorry I wasn?t clear.... I the data won?t be passed to another system, the data is being extracted for a user within my company. The reason why I am extracting the data via an arsdoc get instead of selecting the data through the client is because it?s a large amount of invoices.

Please tell me if you have any additional questions. Thank you
« Last Edit: May 21, 2013, 01:59:08 PM by app1mvf »

app1mvf

  • Guest
Re: ARSDOC Get Line Data Output Unreadable
« Reply #5 on: May 22, 2013, 05:38:32 PM »
I will assume by the lack of responses that no one has ever done this?. Thank you very much for your help, I will open a PMR with IBM.

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: ARSDOC Get Line Data Output Unreadable
« Reply #6 on: May 22, 2013, 09:45:42 PM »
You might want to check back in a few days for an update.  We only get about 20-30 users a day logging in.

If you find an answer, please don't forget to post the solution!  We like answers almost as much as we like questions...  ;)

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

sisusteve

  • Guest
Re: ARSDOC Get Line Data Output Unreadable
« Reply #7 on: May 24, 2013, 06:04:51 AM »
We didn't ever see the answer to the question of which Code Page is used. Is the EBCDIC (Code page 500) or ASCII (Code page 850) data?

LWagner

  • Guest
Re: ARSDOC Get Line Data Output Unreadable
« Reply #8 on: July 02, 2013, 01:39:40 PM »
Was this solved ?

My arsdoc get of AFP included:

-A 7 -vcgN  -G DOC0610 -i "WHERE LOAD_DATE > 0" -o OET.1116FAA -d c:\ars1-test -x "10918-85-0-1116FAA-15590-15590"

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: ARSDOC Get Line Data Output Unreadable
« Reply #9 on: July 02, 2013, 04:31:28 PM »
Without seeing what the codepage is, we don't know if the retrieved data is simply in EBCDIC -- in which case, there's no problem at all.

Seeing the ACIF indexing parameters would also give us some information as well.

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
    • View Profile
Re: ARSDOC Get Line Data Output Unreadable
« Reply #10 on: July 02, 2013, 11:18:30 PM »
Sorry I wasn?t clear.... I the data won?t be passed to another system, the data is being extracted for a user within my company. The reason why I am extracting the data via an arsdoc get instead of selecting the data through the client is because it?s a large amount of invoices.

Please tell me if you have any additional questions. Thank you

Hello app1mvf,

I don't know if you still follow this thread or not, since the only 4 posts (at the time of writing) you posted are all in this thread, and nothing since May 22.

Justin asked you what code page is in your file, and asked also if you could provide some info about the Application itself, so we can analyze your problem.
Because without such basic information, we simply cannot help you. Nobody can help you.

Then you say:
Quote
I will assume by the lack of responses that no one has ever done this?. Thank you very much for your help, I will open a PMR with IBM.

I hope that you were giving more information to the IBM Support people, because without such dialogue, they cannot help you too.

There is a nice saying about "assume":

Quote
You should never assume. You know what happens when you assume. You make an ass out of you and me because that's how it's spelled.

I hope that next time, you will be reading the questions asked by the people that wants to help you. And I assume that you were more verbose with the IBM Support people, and you have had your answer.
I hope that someday you will read this thread, and give us the answer to your problem for the future generation of users in this forum.

I assume that you are going to do that... but I'm certainly making an ass of myself on that... so please help this forum to be a better place :-) with answer to every questions asked!!!

Sincerely yours,
Alessandro
Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML

app1mvf

  • Guest
Re: ARSDOC Get Line Data Output Unreadable
« Reply #11 on: July 23, 2013, 01:23:27 PM »
Update: One of the people on my team got a response to the ticket we opened with IBM stating that the arsdoc get API does not have the functionality to extract multiple report files from a line data application group into one large readable file. IBM suggested that we could use the JAVA API.

The approach taken as a result was to extract the data using the standard API and run it through ICONV and a bunch of sed commands to format the data.