Author Topic: In Linux, Can we convert input buffer data coming from acif/exit in EBCIDIC form  (Read 2977 times)

Jaydeep Mehta

  • Guest
Hi All,

Need Help ...

We are using acif/exit to call our custom "C" program. Our custom code deletes the line in input file. This functionality is working fine on IBM-AIX machine but same is not working on Redhat Linux(.6.32-573.18.1.el6.x86_64) machine.
My findings regarding this issue are :

1) In Linux , acif/exit sending input buffer in encrypted or unknown format to our custom code. Hence our "C" code could not found "Search String " in input buffer which is coming from acif/exit ;
   hence line is not deleted in input file.

2) In AIX, input string from acif/exit is coming in EBCIDIC Format & we can convert it in ASCII (Original) Format, "Search String" is found & hence line is deleted from input file.

3) In Linux, is there anyway to convert input buffer data coming from acif/exit in EBCIDIC format ?

4) Can we change acif/exit settings , so that it can send buffer data to some known format ?

I created following configuration file & used below command to run acif/exit, custom "C" program:
arsacif parmdd=<Config_File>

CC=YES
CCTYPE=A
CONVERT=YES
CPGID=500
MCF2REF=CF
TRC=NO
FILEFORMAT=RECORD,133
TRIGGER1=*,*,X'D6D7C5D5C9D5C740C2C1D3C1D5C3C5',(TYPE=GROUP) /* OPENING BALANCE */
FIELD1=-8,78,12,(TRIGGER=1,BASE=0)
FIELD2=-8,98,9,(TRIGGER=1,BASE=0)
FIELD3=-3,79,12,(TRIGGER=1,BASE=0)
FIELD4=-6,26,36,(TRIGGER=1,BASE=0,DEFAULT=X'E3D6C2C5E4D7C4C1E3C5C4') /* TOBEUPDATED */
INDEX1=X'E2C1D3818383A395A494',FIELD1,(TYPE=GROUP,BREAK=YES) /* SALacctnum */
INDEX2=X'D7D6E2E3C9D5C76DC4C1E3C5',FIELD2,(TYPE=GROUP,BREAK=YES) /* POSTING_DATE */
INDEX3=X'A2A2',FIELD3,(TYPE=GROUP,BREAK=YES) /* ss */
INDEX4=X'E2889699A3C49683C9C4',FIELD4,(TYPE=GROUP,BREAK=NO) /* ShortDocID */
DCFPAGENAMES=NO
UNIQUEBNGS=YES
IMAGEOUT=ASIS
INDEXOBJ=ALL
INDEXSTARTBY=6
INSERTIMM=NO
FORMDEF=F1RDEF26
PAGEDEF=P1RDEF26
USERLIB=/usr/lpp/ars/resources
RESLIB=/usr/lpp/ars/resources
RESTYPE=FDEF,PSEG,OVLY
OUTEXIT=/usr/lpp/ars/scripts/AddShortDocID_line_out
inputdd=/export/tcstage/ingestfiles/INPUTFILE.ARD


Please Suggest .

pmuir1@us.ibm.com

  • Newbie
  • *
  • Posts: 2
    • View Profile
Since the exit works on aix but not linux, there may be a big endian/little endian problem.  For code page conversions, take a look at the arsadmin icu command.

Jaydeep Mehta

  • Guest
Thanks for Suggestion...!

Jaydeep Mehta

  • Guest
It Working in Linux now After Commenting the "Bit wise Pointer" in Exit .

Cheers..
JD..