Focal Point
[SOLVED] Modify for Oracle DB error in null processing

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4121043903

December 03, 2008, 11:05 AM
Anatess
[SOLVED] Modify for Oracle DB error in null processing
Hi all,

I have this code:
TABLE FILE TESTFOC
PRINT LAST_NAME
      FIRST_NAME
      IND1
      IND2
      LAST_UPDATE_BY
      LAST_UPDATE
BY EID
ON TABLE HOLD AS TSTDATA FORMAT ALPHA
END
-RUN

SQL SQLORA SET ORACHAR FIX
MODIFY FILE TESTORA
FIXFORM FROM TSTDATA
DATA ON TSTDATA
END
-RUN


Basically, what I'm trying to do is move data from a focus db to an oracle table. All the fields except the EID has MISSING=ON on the master file for both TESTFOC.mas and TESTORA.mas. The problem is, if a field is null, it takes the next field over and puts it on that field. So, say, IND1 is null, it populates IND2 on IND1, then IND2 gets populated with LAST_UPDATE_BY which then throws an oracle error message because IND2 is A1V while LAST_UPDATE_BY is A8V. What's going on?

I'm running this on 7.6.4.

This message has been edited. Last edited by: Kerry,


WF 8.1.05 Windows
December 03, 2008, 11:15 AM
TexasStingray
Just a thought,

Try removing the FORMAT ALPHA leaviong just

ON TABLE HOLD AS TSTDATA




Scott

Have to have FORMAT ALPHA. Otherwise, EDASERVE CRASH. Probably because LAST_UPDATE is a date field. Not sure. I know from past experience that if I have a date field, I need to do format alpha.

I tried to do FORMAT COMMA but dunno how to word that in the MODIFY... I mean, it can't be FIXFORM... and FREEFORM is no good...

I'm stumped.


WF 8.1.05 Windows
Anatess

Only thing that comes to mind is SET HOLDMISS.

Could that help?


Alan.
WF 7.705/8.007
Either that or use a com delimited hold file so that the missing data actually does appear in the data.

By the way Mr. Bell doing anything interesting over Christmas. Or do you fancy a trip to Spain (just joking).
Hi Alan,

HOLDMISS didn't change anything...

JG, if I use FORMAT COMMA, I can't use FIXFORM anymore on MODIFY right? What should I use instead?


WF 8.1.05 Windows
FORMAT COM

Generates amaster just like a standard hold so FIXFORM should be OK.
You need the very undocumented

SET FIXFRMINPUT=NONCOND

My bill for this classified information is $1,000,000



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
quote:
SET FIXFRMINPUT

Very documented (just not in the correct place for WF users.

quote:

FOCUS for Mainframe
Summary of New Features
Version 7. 6