We get the TRANID from one of two places. Either a SET ACCOUNT-ID in the startup which is defined to SC00TRAN or in the program itself with the statement SET $ACCOUNTID. Here are some suggestions to help you determine where you have set the ACCOUNT-ID.
If you don't know what the ACCOUNT-ID is set to or if you even have one set, look at the parameter TRNDATA in SC00TRAN. The parameter TRNDATA contains the name of your startup member. Look in the startup member for SET ENVIRONMENT ACCOUNT-ID xxx. If ACCOUNT-ID is not in the startup member, look at the RUN command in the startup for the program that is being executed. Scan the program for SET ENVIRONMENT ACCOUNT-ID. If the program contains multiple subprograms, you will need to scan all the subprogram for the SET ENVIRONMENT ACCOUNT-ID. You can automate this process by creating an Ideal program similar to one of our sample programs, EXPGEN. EXPGEN was distributed under Ideal 2.2 in the external source file. You can also contact support for a copy.