Identifier issue

Hi,

We are in the process of migrating our servers from Solaris to AIX.
During our testing phase, while we are testing the scripts(reccnt.int), we are getting the following error during execution:

/reccnt.int[32]: a:fname:b:dte:tme:eqind:norecs:cntr:c:d:e:f: is not an identifier

It is executing successfully in Solaris server.

Please advise.

Thanks

---------- Post updated at 01:14 AM ---------- Previous update was at 01:14 AM ----------

Paste some piece of code.

regards,
Ahamed

#!/bin/sh 

RC=0   ; # return code
# first check input file
if [ ! -f $1 ] ; then
  echo "Input file not found: " $1
  exit 1 
fi
# =====================================
#  read first record of cntl file, separate into variables
#
#  set IFS and reset after read cmd:
#  set IFS to be colon (":")
# =====================================
IFS=:
read a:fname:b:dte:tme:eqind:norecs:cntr:c:d:e:f < $1
IFS=" " 

Is ksh available? If so, try it, it could go without modification.

Or if not, perhaps read a fname b dte tme eqind norecs cntr c d e f < $1

Try this...

IFS=: 
read a fname b dte tme eqind norecs cntr c d e f < $1 
IFS=" "

regards,
Ahamed

but in the first line it is given as IFS=:
is it fine to remove ":" in the below mention code:

 read a:fname:b:dte:tme:eqind:norecs:cntr:c:d:e:f < $1

Thanks

Yes of course. It depends on the shell you are working on. You can test it by removing that. It will work.

Cheers!