Here's a script I wrote for unix which clears the trigger flag from a
hashed file header. You could amend it for the trans log flag.

#!/bin/ksh
# clrsic.sh
# stuart boydell 2008-09-11
# clear sica bit from file header (32 & 64 bit files)
if [ $1 == '-?' ]; then
   echo "clrsic"
   echo "========="
   echo "Clears the SICA bit from a UV file header"
   echo "Usage: $0 [-?] [-f file]"
   exit 0
fi
if [ $1 == '-f' ]; then
   shift
   FILE=$1
   if [ -s ${FILE} ]; then
      echo converting sica in ${FILE}
      echo -n aaaaaaaa | tr "a" "\000" > sicapatchup
      dd if=sicapatchup bs=1 conv=notrunc of=$FILE seek=88 count=8
      rm sicapatchup
      exit 0
   fi
fi


Stuart Boydell 


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Lloyd
Cottrell
Sent: Saturday, 10 October 2009 02:37
To: [email protected]
Subject: [U2] need help with writing to file header

I have a need to take out the transaction logging flag inside of some
files.  Can someone give me some info on how to write to the file
header.
These files that need to be changed are all hashed files and the flag
resides at hex x114.  U2 tech support says this can be done in
databasic, so
any help would be appreciated.
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

 
**********************************************************************
This email message and any files transmitted with it are confidential and 
intended solely for the use of addressed recipient(s). If you have received 
this communication in error, please reply to this e-mail to notify the sender 
of its incorrect delivery and then delete it and your reply.  It is your 
responsibility to check this email and any attachments for viruses and defects 
before opening or sending them on. Spotless collects information about you to 
provide and market our services. For information about use, disclosure and 
access, see our privacy policy at http://www.spotless.com.au 
Please consider our environment before printing this email. 
********************************************************************** 

_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to