uty4014 access module error 35 received during 'comm_pmreadddparse' operation: The 2019 Stack Overflow Developer Survey Results Are InERROR 2616 Numeric overflow during computation while doing count(*)Explain plan for update operation involving join indexTeradata - Cannot nest aggregate operationsSQL EXECUTE FUNCTION access error?Teradata Multi load Not ProceedMLOAD ERROR CODE 4 IN TERADATAJoin operation between Table and ViewLock a table during multiple statements in a stored procedureTeradata Mload Error : UTY4014 Access module error '42' received during 'get position' operationMload not failing despite syntax error
Why isn't the circumferential light around the M87 black hole's event horizon symmetric?
Is bread bad for ducks?
Does adding complexity mean a more secure cipher?
Why does the nucleus not repel itself?
Why is the maximum length of OpenWrt’s root password 8 characters?
"as much details as you can remember"
How to translate "being like"?
How come people say “Would of”?
Output the Arecibo Message
Why doesn't UInt have a toDouble()?
Did Scotland spend $250,000 for the slogan "Welcome to Scotland"?
Why can't devices on different VLANs, but on the same subnet, communicate?
If climate change impact can be observed in nature, has that had any effect on rural, i.e. farming community, perception of the scientific consensus?
What force causes entropy to increase?
Deal with toxic manager when you can't quit
Is it safe to harvest rainwater that fell on solar panels?
Did any laptop computers have a built-in 5 1/4 inch floppy drive?
How to charge AirPods to keep battery healthy?
Why can I use a list index as an indexing variable in a for loop?
What is the most efficient way to store a numeric range?
Why doesn't shell automatically fix "useless use of cat"?
writing variables above the numbers in tikz picture
Finding the area between two curves with Integrate
Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?
uty4014 access module error 35 received during 'comm_pmreadddparse' operation:
The 2019 Stack Overflow Developer Survey Results Are InERROR 2616 Numeric overflow during computation while doing count(*)Explain plan for update operation involving join indexTeradata - Cannot nest aggregate operationsSQL EXECUTE FUNCTION access error?Teradata Multi load Not ProceedMLOAD ERROR CODE 4 IN TERADATAJoin operation between Table and ViewLock a table during multiple statements in a stored procedureTeradata Mload Error : UTY4014 Access module error '42' received during 'get position' operationMload not failing despite syntax error
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I'm new to mload. I get this error when I try to execute my mload script:
uty4014 access module error 35 received during 'comm_pmreadddparse'
operation:'Unable to determine EOR for the datafile !ERROR! Could not
find a valid EOR'.
Also providing the mload script:
.logtable ALL_wkSCRATCHPAD_DB.Coverage_log;
.logmech ldap;
.logdata authcid= password=;
.LOGON tdip/;
DROP Table ALL_WKSCRATCHPAD_DB.Coverage;
DROP Table ALL_WKSCRATCHPAD_DB.error_1;
DROP Table ALL_WKSCRATCHPAD_DB.error_2;
DROP Table ALL_WKSCRATCHPAD_DB.Coverage_WK;
CREATE SET TABLE ABCD_DB.Coverage
(
COVG_KEY VARCHAR(50),
TRANSACTION_TYPE VARCHAR(20),
POLICY_NUMBER VARCHAR(18),
PRODUCER VARCHAR(17),
AGENT_NAME VARCHAR(64),
TRANSACTION_PROCESS_DATE VARCHAR(20),
ENDORSEMENT_EFFECTIVE_DATE VARCHAR(10),
ENDORSEMENT_EXPIRATION_DATE VARCHAR(10),
POLICY_EFFECTIVE_DATE VARCHAR(10),
POLICY_EXPIRATION_DATE VARCHAR(10),
LINE_OF_BUSINESS VARCHAR(10),
STATE VARCHAR(2),
PREMIUM_AMOUNT VARCHAR(20),
COMPANY VARCHAR(32),
NAICS_CODE VARCHAR(6),
GL_CLASS_CODE VARCHAR(5),
BUSINESS_CLASS_DESCRIPTION VARCHAR(64),
PARTY_NAME VARCHAR(64),
PARTY_TYPE_CD VARCHAR(16),
BUSINESS_PHONE VARCHAR(10),
BL_STREET_ADDRESS_LINE_1 VARCHAR(64),
BL_STREET_ADDRESS_LINE_2 VARCHAR(64),
BL_STREET_ADDRESS_LINE_3 VARCHAR(32),
BL_COUNTRY VARCHAR(32),
BL_STATE VARCHAR(2),
BL_CITY VARCHAR(64),
BL_ZIP VARCHAR(10),
BL_COUNTY VARCHAR(32),
STATUS_CD VARCHAR(3),
QUOTE_CREATED_DATE VARCHAR(20)
);
.BEGIN IMPORT MLOAD TABLES ALL_WKSCRATCHPAD_DB.Coverage
WORKTABLES ALL_WKSCRATCHPAD_DB.Coverage_WK
ERRORTABLES ALL_wkSCRATCHPAD_DB.error_1
ALL_wkSCRATCHPAD_DB.error_2
SESSIONS 5;
.LAYOUT INPUT_RECORD;
.FIELD COVG_KEY * VARCHAR(50);
.FIELD TRANSACTION_TYPE * VARCHAR(20);
.FIELD POLICY_NUMBER * VARCHAR(18);
.FIELD PRODUCER * VARCHAR(17);
.FIELD AGENT_NAME * VARCHAR(64);
.FIELD TRANSACTION_PROCESS_DATE * VARCHAR(6);
.FIELD ENDORSEMENT_EFFECTIVE_DATE * VARCHAR(10);
.FIELD ENDORSEMENT_EXPIRATION_DATE * VARCHAR(10);
.FIELD POLICY_EFFECTIVE_DATE * VARCHAR(10);
.FIELD POLICY_EXPIRATION_DATE * VARCHAR(10);
.FIELD LINE_OF_BUSINESS * VARCHAR(10);
.FIELD STATE * VARCHAR(2);
.FIELD PREMIUM_AMOUNT * VARCHAR(20);
.FIELD COMPANY * VARCHAR(32);
.FIELD NAICS_CODE * VARCHAR(6);
.FIELD GL_CLASS_CODE * VARCHAR(5);
.FIELD BUSINESS_CLASS_DESCRIPTION * VARCHAR(64);
.FIELD PARTY_NAME * VARCHAR(64);
.FIELD PARTY_TYPE_CD * VARCHAR(16);
.FIELD BUSINESS_PHONE * VARCHAR(10);
.FIELD BL_STREET_ADDRESS_LINE_1 * VARCHAR(64);
.FIELD BL_STREET_ADDRESS_LINE_2 * VARCHAR(64);
.FIELD BL_STREET_ADDRESS_LINE_3 * VARCHAR(32);
.FIELD BL_COUNTRY * VARCHAR(32);
.FIELD BL_STATE * VARCHAR(2);
.FIELD BL_CITY * VARCHAR(64);
.FIELD BL_ZIP * VARCHAR(10);
.FIELD BL_COUNTY * VARCHAR(32);
.FIELD STATUS_CD * VARCHAR(3);
.FIELD QUOTE_CREATED_DATE * VARCHAR(10);
.DML LABEL insdml;
insert into ALL_WKSCRATCHPAD_DB.Coverage
(
COVG_KEY
,TRANSACTION_TYPE
,POLICY_NUMBER
,PRODUCER
,AGENT_NAME
,TRANSACTION_PROCESS_DATE
,ENDORSEMENT_EFFECTIVE_DATE
,ENDORSEMENT_EXPIRATION_DATE
,POLICY_EFFECTIVE_DATE
,POLICY_EXPIRATION_DATE
,LINE_OF_BUSINESS
,STATE
,PREMIUM_AMOUNT
,COMPANY
,NAICS_CODE
,GL_CLASS_CODE
,BUSINESS_CLASS_DESCRIPTION
,PARTY_NAME
,PARTY_TYPE_CD
,BUSINESS_PHONE
,BL_STREET_ADDRESS_LINE_1
,BL_STREET_ADDRESS_LINE_2
,BL_STREET_ADDRESS_LINE_3
,BL_COUNTRY
,BL_STATE
,BL_CITY
,BL_ZIP
,BL_COUNTY
,STATUS_CD
,QUOTE_CREATED_DATE
)
values
(
:COVG_KEY
,:TRANSACTION_TYPE
,:POLICY_NUMBER
,:PRODUCER
,:AGENT_NAME
,:TRANSACTION_PROCESS_DATE
,:ENDORSEMENT_EFFECTIVE_DATE
,:ENDORSEMENT_EXPIRATION_DATE
,:POLICY_EFFECTIVE_DATE
,:POLICY_EXPIRATION_DATE
,:LINE_OF_BUSINESS
,:STATE
,:PREMIUM_AMOUNT
,:COMPANY
,:NAICS_CODE
,:GL_CLASS_CODE
,:BUSINESS_CLASS_DESCRIPTION
,:PARTY_NAME
,:PARTY_TYPE_CD
,:BUSINESS_PHONE
,:BL_STREET_ADDRESS_LINE_1
,:BL_STREET_ADDRESS_LINE_2
,:BL_STREET_ADDRESS_LINE_3
,:BL_COUNTRY
,:BL_STATE
,:BL_CITY
,:BL_ZIP
,:BL_COUNTY
,:STATUS_CD
,:QUOTE_CREATED_DATE
);
.IMPORT INFILE '/home/adepum2/ABDC.txt'
FORMAT VARTEXT '|'
display errors
NOSTOP
LAYOUT INPUT_RECORD
APPLY insdml;
.END MLOAD;
.LOGOFF;
My txt file looks like:
||ACP 3008641853|00055050-140|JOHN RUSSELL MORAN|02/06/2018
08:52:00|||||GL||13538.00||||||||265 Buckingham
Ct|||||ILSchaumburg|601932084||||02/06/2018 08:33:00
I have tried to look for any Regex in my text file but not able to find it.
Your help would be really appreciated.
Thanks,
phantom
teradata mload
add a comment |
I'm new to mload. I get this error when I try to execute my mload script:
uty4014 access module error 35 received during 'comm_pmreadddparse'
operation:'Unable to determine EOR for the datafile !ERROR! Could not
find a valid EOR'.
Also providing the mload script:
.logtable ALL_wkSCRATCHPAD_DB.Coverage_log;
.logmech ldap;
.logdata authcid= password=;
.LOGON tdip/;
DROP Table ALL_WKSCRATCHPAD_DB.Coverage;
DROP Table ALL_WKSCRATCHPAD_DB.error_1;
DROP Table ALL_WKSCRATCHPAD_DB.error_2;
DROP Table ALL_WKSCRATCHPAD_DB.Coverage_WK;
CREATE SET TABLE ABCD_DB.Coverage
(
COVG_KEY VARCHAR(50),
TRANSACTION_TYPE VARCHAR(20),
POLICY_NUMBER VARCHAR(18),
PRODUCER VARCHAR(17),
AGENT_NAME VARCHAR(64),
TRANSACTION_PROCESS_DATE VARCHAR(20),
ENDORSEMENT_EFFECTIVE_DATE VARCHAR(10),
ENDORSEMENT_EXPIRATION_DATE VARCHAR(10),
POLICY_EFFECTIVE_DATE VARCHAR(10),
POLICY_EXPIRATION_DATE VARCHAR(10),
LINE_OF_BUSINESS VARCHAR(10),
STATE VARCHAR(2),
PREMIUM_AMOUNT VARCHAR(20),
COMPANY VARCHAR(32),
NAICS_CODE VARCHAR(6),
GL_CLASS_CODE VARCHAR(5),
BUSINESS_CLASS_DESCRIPTION VARCHAR(64),
PARTY_NAME VARCHAR(64),
PARTY_TYPE_CD VARCHAR(16),
BUSINESS_PHONE VARCHAR(10),
BL_STREET_ADDRESS_LINE_1 VARCHAR(64),
BL_STREET_ADDRESS_LINE_2 VARCHAR(64),
BL_STREET_ADDRESS_LINE_3 VARCHAR(32),
BL_COUNTRY VARCHAR(32),
BL_STATE VARCHAR(2),
BL_CITY VARCHAR(64),
BL_ZIP VARCHAR(10),
BL_COUNTY VARCHAR(32),
STATUS_CD VARCHAR(3),
QUOTE_CREATED_DATE VARCHAR(20)
);
.BEGIN IMPORT MLOAD TABLES ALL_WKSCRATCHPAD_DB.Coverage
WORKTABLES ALL_WKSCRATCHPAD_DB.Coverage_WK
ERRORTABLES ALL_wkSCRATCHPAD_DB.error_1
ALL_wkSCRATCHPAD_DB.error_2
SESSIONS 5;
.LAYOUT INPUT_RECORD;
.FIELD COVG_KEY * VARCHAR(50);
.FIELD TRANSACTION_TYPE * VARCHAR(20);
.FIELD POLICY_NUMBER * VARCHAR(18);
.FIELD PRODUCER * VARCHAR(17);
.FIELD AGENT_NAME * VARCHAR(64);
.FIELD TRANSACTION_PROCESS_DATE * VARCHAR(6);
.FIELD ENDORSEMENT_EFFECTIVE_DATE * VARCHAR(10);
.FIELD ENDORSEMENT_EXPIRATION_DATE * VARCHAR(10);
.FIELD POLICY_EFFECTIVE_DATE * VARCHAR(10);
.FIELD POLICY_EXPIRATION_DATE * VARCHAR(10);
.FIELD LINE_OF_BUSINESS * VARCHAR(10);
.FIELD STATE * VARCHAR(2);
.FIELD PREMIUM_AMOUNT * VARCHAR(20);
.FIELD COMPANY * VARCHAR(32);
.FIELD NAICS_CODE * VARCHAR(6);
.FIELD GL_CLASS_CODE * VARCHAR(5);
.FIELD BUSINESS_CLASS_DESCRIPTION * VARCHAR(64);
.FIELD PARTY_NAME * VARCHAR(64);
.FIELD PARTY_TYPE_CD * VARCHAR(16);
.FIELD BUSINESS_PHONE * VARCHAR(10);
.FIELD BL_STREET_ADDRESS_LINE_1 * VARCHAR(64);
.FIELD BL_STREET_ADDRESS_LINE_2 * VARCHAR(64);
.FIELD BL_STREET_ADDRESS_LINE_3 * VARCHAR(32);
.FIELD BL_COUNTRY * VARCHAR(32);
.FIELD BL_STATE * VARCHAR(2);
.FIELD BL_CITY * VARCHAR(64);
.FIELD BL_ZIP * VARCHAR(10);
.FIELD BL_COUNTY * VARCHAR(32);
.FIELD STATUS_CD * VARCHAR(3);
.FIELD QUOTE_CREATED_DATE * VARCHAR(10);
.DML LABEL insdml;
insert into ALL_WKSCRATCHPAD_DB.Coverage
(
COVG_KEY
,TRANSACTION_TYPE
,POLICY_NUMBER
,PRODUCER
,AGENT_NAME
,TRANSACTION_PROCESS_DATE
,ENDORSEMENT_EFFECTIVE_DATE
,ENDORSEMENT_EXPIRATION_DATE
,POLICY_EFFECTIVE_DATE
,POLICY_EXPIRATION_DATE
,LINE_OF_BUSINESS
,STATE
,PREMIUM_AMOUNT
,COMPANY
,NAICS_CODE
,GL_CLASS_CODE
,BUSINESS_CLASS_DESCRIPTION
,PARTY_NAME
,PARTY_TYPE_CD
,BUSINESS_PHONE
,BL_STREET_ADDRESS_LINE_1
,BL_STREET_ADDRESS_LINE_2
,BL_STREET_ADDRESS_LINE_3
,BL_COUNTRY
,BL_STATE
,BL_CITY
,BL_ZIP
,BL_COUNTY
,STATUS_CD
,QUOTE_CREATED_DATE
)
values
(
:COVG_KEY
,:TRANSACTION_TYPE
,:POLICY_NUMBER
,:PRODUCER
,:AGENT_NAME
,:TRANSACTION_PROCESS_DATE
,:ENDORSEMENT_EFFECTIVE_DATE
,:ENDORSEMENT_EXPIRATION_DATE
,:POLICY_EFFECTIVE_DATE
,:POLICY_EXPIRATION_DATE
,:LINE_OF_BUSINESS
,:STATE
,:PREMIUM_AMOUNT
,:COMPANY
,:NAICS_CODE
,:GL_CLASS_CODE
,:BUSINESS_CLASS_DESCRIPTION
,:PARTY_NAME
,:PARTY_TYPE_CD
,:BUSINESS_PHONE
,:BL_STREET_ADDRESS_LINE_1
,:BL_STREET_ADDRESS_LINE_2
,:BL_STREET_ADDRESS_LINE_3
,:BL_COUNTRY
,:BL_STATE
,:BL_CITY
,:BL_ZIP
,:BL_COUNTY
,:STATUS_CD
,:QUOTE_CREATED_DATE
);
.IMPORT INFILE '/home/adepum2/ABDC.txt'
FORMAT VARTEXT '|'
display errors
NOSTOP
LAYOUT INPUT_RECORD
APPLY insdml;
.END MLOAD;
.LOGOFF;
My txt file looks like:
||ACP 3008641853|00055050-140|JOHN RUSSELL MORAN|02/06/2018
08:52:00|||||GL||13538.00||||||||265 Buckingham
Ct|||||ILSchaumburg|601932084||||02/06/2018 08:33:00
I have tried to look for any Regex in my text file but not able to find it.
Your help would be really appreciated.
Thanks,
phantom
teradata mload
EOR might be End Of Record, UnixLF
vs WindowsCRLF
? But you shouldn't use legacy MLoad anymore, you better switch to TPT, your case is probably a simple task for the Easy Loader,tdload
.
– dnoeth
Mar 21 at 19:06
Thanks dnoeth, but our company follows the legacy Mload.
– Phantom
Mar 21 at 19:44
Is there any other possible way to solve this issue.
– Phantom
Mar 21 at 20:33
I can't remember if I ever got this error, so I don't know how to fix it, sorry
– dnoeth
Mar 21 at 22:06
Don't think you can specify a row delimiter in MLoad. Use your text editor of choice to see if your records end in LF (or something else) instead of CRLF. Assuming so, use your script language of choice to replace them.
– Andrew
Mar 22 at 14:11
add a comment |
I'm new to mload. I get this error when I try to execute my mload script:
uty4014 access module error 35 received during 'comm_pmreadddparse'
operation:'Unable to determine EOR for the datafile !ERROR! Could not
find a valid EOR'.
Also providing the mload script:
.logtable ALL_wkSCRATCHPAD_DB.Coverage_log;
.logmech ldap;
.logdata authcid= password=;
.LOGON tdip/;
DROP Table ALL_WKSCRATCHPAD_DB.Coverage;
DROP Table ALL_WKSCRATCHPAD_DB.error_1;
DROP Table ALL_WKSCRATCHPAD_DB.error_2;
DROP Table ALL_WKSCRATCHPAD_DB.Coverage_WK;
CREATE SET TABLE ABCD_DB.Coverage
(
COVG_KEY VARCHAR(50),
TRANSACTION_TYPE VARCHAR(20),
POLICY_NUMBER VARCHAR(18),
PRODUCER VARCHAR(17),
AGENT_NAME VARCHAR(64),
TRANSACTION_PROCESS_DATE VARCHAR(20),
ENDORSEMENT_EFFECTIVE_DATE VARCHAR(10),
ENDORSEMENT_EXPIRATION_DATE VARCHAR(10),
POLICY_EFFECTIVE_DATE VARCHAR(10),
POLICY_EXPIRATION_DATE VARCHAR(10),
LINE_OF_BUSINESS VARCHAR(10),
STATE VARCHAR(2),
PREMIUM_AMOUNT VARCHAR(20),
COMPANY VARCHAR(32),
NAICS_CODE VARCHAR(6),
GL_CLASS_CODE VARCHAR(5),
BUSINESS_CLASS_DESCRIPTION VARCHAR(64),
PARTY_NAME VARCHAR(64),
PARTY_TYPE_CD VARCHAR(16),
BUSINESS_PHONE VARCHAR(10),
BL_STREET_ADDRESS_LINE_1 VARCHAR(64),
BL_STREET_ADDRESS_LINE_2 VARCHAR(64),
BL_STREET_ADDRESS_LINE_3 VARCHAR(32),
BL_COUNTRY VARCHAR(32),
BL_STATE VARCHAR(2),
BL_CITY VARCHAR(64),
BL_ZIP VARCHAR(10),
BL_COUNTY VARCHAR(32),
STATUS_CD VARCHAR(3),
QUOTE_CREATED_DATE VARCHAR(20)
);
.BEGIN IMPORT MLOAD TABLES ALL_WKSCRATCHPAD_DB.Coverage
WORKTABLES ALL_WKSCRATCHPAD_DB.Coverage_WK
ERRORTABLES ALL_wkSCRATCHPAD_DB.error_1
ALL_wkSCRATCHPAD_DB.error_2
SESSIONS 5;
.LAYOUT INPUT_RECORD;
.FIELD COVG_KEY * VARCHAR(50);
.FIELD TRANSACTION_TYPE * VARCHAR(20);
.FIELD POLICY_NUMBER * VARCHAR(18);
.FIELD PRODUCER * VARCHAR(17);
.FIELD AGENT_NAME * VARCHAR(64);
.FIELD TRANSACTION_PROCESS_DATE * VARCHAR(6);
.FIELD ENDORSEMENT_EFFECTIVE_DATE * VARCHAR(10);
.FIELD ENDORSEMENT_EXPIRATION_DATE * VARCHAR(10);
.FIELD POLICY_EFFECTIVE_DATE * VARCHAR(10);
.FIELD POLICY_EXPIRATION_DATE * VARCHAR(10);
.FIELD LINE_OF_BUSINESS * VARCHAR(10);
.FIELD STATE * VARCHAR(2);
.FIELD PREMIUM_AMOUNT * VARCHAR(20);
.FIELD COMPANY * VARCHAR(32);
.FIELD NAICS_CODE * VARCHAR(6);
.FIELD GL_CLASS_CODE * VARCHAR(5);
.FIELD BUSINESS_CLASS_DESCRIPTION * VARCHAR(64);
.FIELD PARTY_NAME * VARCHAR(64);
.FIELD PARTY_TYPE_CD * VARCHAR(16);
.FIELD BUSINESS_PHONE * VARCHAR(10);
.FIELD BL_STREET_ADDRESS_LINE_1 * VARCHAR(64);
.FIELD BL_STREET_ADDRESS_LINE_2 * VARCHAR(64);
.FIELD BL_STREET_ADDRESS_LINE_3 * VARCHAR(32);
.FIELD BL_COUNTRY * VARCHAR(32);
.FIELD BL_STATE * VARCHAR(2);
.FIELD BL_CITY * VARCHAR(64);
.FIELD BL_ZIP * VARCHAR(10);
.FIELD BL_COUNTY * VARCHAR(32);
.FIELD STATUS_CD * VARCHAR(3);
.FIELD QUOTE_CREATED_DATE * VARCHAR(10);
.DML LABEL insdml;
insert into ALL_WKSCRATCHPAD_DB.Coverage
(
COVG_KEY
,TRANSACTION_TYPE
,POLICY_NUMBER
,PRODUCER
,AGENT_NAME
,TRANSACTION_PROCESS_DATE
,ENDORSEMENT_EFFECTIVE_DATE
,ENDORSEMENT_EXPIRATION_DATE
,POLICY_EFFECTIVE_DATE
,POLICY_EXPIRATION_DATE
,LINE_OF_BUSINESS
,STATE
,PREMIUM_AMOUNT
,COMPANY
,NAICS_CODE
,GL_CLASS_CODE
,BUSINESS_CLASS_DESCRIPTION
,PARTY_NAME
,PARTY_TYPE_CD
,BUSINESS_PHONE
,BL_STREET_ADDRESS_LINE_1
,BL_STREET_ADDRESS_LINE_2
,BL_STREET_ADDRESS_LINE_3
,BL_COUNTRY
,BL_STATE
,BL_CITY
,BL_ZIP
,BL_COUNTY
,STATUS_CD
,QUOTE_CREATED_DATE
)
values
(
:COVG_KEY
,:TRANSACTION_TYPE
,:POLICY_NUMBER
,:PRODUCER
,:AGENT_NAME
,:TRANSACTION_PROCESS_DATE
,:ENDORSEMENT_EFFECTIVE_DATE
,:ENDORSEMENT_EXPIRATION_DATE
,:POLICY_EFFECTIVE_DATE
,:POLICY_EXPIRATION_DATE
,:LINE_OF_BUSINESS
,:STATE
,:PREMIUM_AMOUNT
,:COMPANY
,:NAICS_CODE
,:GL_CLASS_CODE
,:BUSINESS_CLASS_DESCRIPTION
,:PARTY_NAME
,:PARTY_TYPE_CD
,:BUSINESS_PHONE
,:BL_STREET_ADDRESS_LINE_1
,:BL_STREET_ADDRESS_LINE_2
,:BL_STREET_ADDRESS_LINE_3
,:BL_COUNTRY
,:BL_STATE
,:BL_CITY
,:BL_ZIP
,:BL_COUNTY
,:STATUS_CD
,:QUOTE_CREATED_DATE
);
.IMPORT INFILE '/home/adepum2/ABDC.txt'
FORMAT VARTEXT '|'
display errors
NOSTOP
LAYOUT INPUT_RECORD
APPLY insdml;
.END MLOAD;
.LOGOFF;
My txt file looks like:
||ACP 3008641853|00055050-140|JOHN RUSSELL MORAN|02/06/2018
08:52:00|||||GL||13538.00||||||||265 Buckingham
Ct|||||ILSchaumburg|601932084||||02/06/2018 08:33:00
I have tried to look for any Regex in my text file but not able to find it.
Your help would be really appreciated.
Thanks,
phantom
teradata mload
I'm new to mload. I get this error when I try to execute my mload script:
uty4014 access module error 35 received during 'comm_pmreadddparse'
operation:'Unable to determine EOR for the datafile !ERROR! Could not
find a valid EOR'.
Also providing the mload script:
.logtable ALL_wkSCRATCHPAD_DB.Coverage_log;
.logmech ldap;
.logdata authcid= password=;
.LOGON tdip/;
DROP Table ALL_WKSCRATCHPAD_DB.Coverage;
DROP Table ALL_WKSCRATCHPAD_DB.error_1;
DROP Table ALL_WKSCRATCHPAD_DB.error_2;
DROP Table ALL_WKSCRATCHPAD_DB.Coverage_WK;
CREATE SET TABLE ABCD_DB.Coverage
(
COVG_KEY VARCHAR(50),
TRANSACTION_TYPE VARCHAR(20),
POLICY_NUMBER VARCHAR(18),
PRODUCER VARCHAR(17),
AGENT_NAME VARCHAR(64),
TRANSACTION_PROCESS_DATE VARCHAR(20),
ENDORSEMENT_EFFECTIVE_DATE VARCHAR(10),
ENDORSEMENT_EXPIRATION_DATE VARCHAR(10),
POLICY_EFFECTIVE_DATE VARCHAR(10),
POLICY_EXPIRATION_DATE VARCHAR(10),
LINE_OF_BUSINESS VARCHAR(10),
STATE VARCHAR(2),
PREMIUM_AMOUNT VARCHAR(20),
COMPANY VARCHAR(32),
NAICS_CODE VARCHAR(6),
GL_CLASS_CODE VARCHAR(5),
BUSINESS_CLASS_DESCRIPTION VARCHAR(64),
PARTY_NAME VARCHAR(64),
PARTY_TYPE_CD VARCHAR(16),
BUSINESS_PHONE VARCHAR(10),
BL_STREET_ADDRESS_LINE_1 VARCHAR(64),
BL_STREET_ADDRESS_LINE_2 VARCHAR(64),
BL_STREET_ADDRESS_LINE_3 VARCHAR(32),
BL_COUNTRY VARCHAR(32),
BL_STATE VARCHAR(2),
BL_CITY VARCHAR(64),
BL_ZIP VARCHAR(10),
BL_COUNTY VARCHAR(32),
STATUS_CD VARCHAR(3),
QUOTE_CREATED_DATE VARCHAR(20)
);
.BEGIN IMPORT MLOAD TABLES ALL_WKSCRATCHPAD_DB.Coverage
WORKTABLES ALL_WKSCRATCHPAD_DB.Coverage_WK
ERRORTABLES ALL_wkSCRATCHPAD_DB.error_1
ALL_wkSCRATCHPAD_DB.error_2
SESSIONS 5;
.LAYOUT INPUT_RECORD;
.FIELD COVG_KEY * VARCHAR(50);
.FIELD TRANSACTION_TYPE * VARCHAR(20);
.FIELD POLICY_NUMBER * VARCHAR(18);
.FIELD PRODUCER * VARCHAR(17);
.FIELD AGENT_NAME * VARCHAR(64);
.FIELD TRANSACTION_PROCESS_DATE * VARCHAR(6);
.FIELD ENDORSEMENT_EFFECTIVE_DATE * VARCHAR(10);
.FIELD ENDORSEMENT_EXPIRATION_DATE * VARCHAR(10);
.FIELD POLICY_EFFECTIVE_DATE * VARCHAR(10);
.FIELD POLICY_EXPIRATION_DATE * VARCHAR(10);
.FIELD LINE_OF_BUSINESS * VARCHAR(10);
.FIELD STATE * VARCHAR(2);
.FIELD PREMIUM_AMOUNT * VARCHAR(20);
.FIELD COMPANY * VARCHAR(32);
.FIELD NAICS_CODE * VARCHAR(6);
.FIELD GL_CLASS_CODE * VARCHAR(5);
.FIELD BUSINESS_CLASS_DESCRIPTION * VARCHAR(64);
.FIELD PARTY_NAME * VARCHAR(64);
.FIELD PARTY_TYPE_CD * VARCHAR(16);
.FIELD BUSINESS_PHONE * VARCHAR(10);
.FIELD BL_STREET_ADDRESS_LINE_1 * VARCHAR(64);
.FIELD BL_STREET_ADDRESS_LINE_2 * VARCHAR(64);
.FIELD BL_STREET_ADDRESS_LINE_3 * VARCHAR(32);
.FIELD BL_COUNTRY * VARCHAR(32);
.FIELD BL_STATE * VARCHAR(2);
.FIELD BL_CITY * VARCHAR(64);
.FIELD BL_ZIP * VARCHAR(10);
.FIELD BL_COUNTY * VARCHAR(32);
.FIELD STATUS_CD * VARCHAR(3);
.FIELD QUOTE_CREATED_DATE * VARCHAR(10);
.DML LABEL insdml;
insert into ALL_WKSCRATCHPAD_DB.Coverage
(
COVG_KEY
,TRANSACTION_TYPE
,POLICY_NUMBER
,PRODUCER
,AGENT_NAME
,TRANSACTION_PROCESS_DATE
,ENDORSEMENT_EFFECTIVE_DATE
,ENDORSEMENT_EXPIRATION_DATE
,POLICY_EFFECTIVE_DATE
,POLICY_EXPIRATION_DATE
,LINE_OF_BUSINESS
,STATE
,PREMIUM_AMOUNT
,COMPANY
,NAICS_CODE
,GL_CLASS_CODE
,BUSINESS_CLASS_DESCRIPTION
,PARTY_NAME
,PARTY_TYPE_CD
,BUSINESS_PHONE
,BL_STREET_ADDRESS_LINE_1
,BL_STREET_ADDRESS_LINE_2
,BL_STREET_ADDRESS_LINE_3
,BL_COUNTRY
,BL_STATE
,BL_CITY
,BL_ZIP
,BL_COUNTY
,STATUS_CD
,QUOTE_CREATED_DATE
)
values
(
:COVG_KEY
,:TRANSACTION_TYPE
,:POLICY_NUMBER
,:PRODUCER
,:AGENT_NAME
,:TRANSACTION_PROCESS_DATE
,:ENDORSEMENT_EFFECTIVE_DATE
,:ENDORSEMENT_EXPIRATION_DATE
,:POLICY_EFFECTIVE_DATE
,:POLICY_EXPIRATION_DATE
,:LINE_OF_BUSINESS
,:STATE
,:PREMIUM_AMOUNT
,:COMPANY
,:NAICS_CODE
,:GL_CLASS_CODE
,:BUSINESS_CLASS_DESCRIPTION
,:PARTY_NAME
,:PARTY_TYPE_CD
,:BUSINESS_PHONE
,:BL_STREET_ADDRESS_LINE_1
,:BL_STREET_ADDRESS_LINE_2
,:BL_STREET_ADDRESS_LINE_3
,:BL_COUNTRY
,:BL_STATE
,:BL_CITY
,:BL_ZIP
,:BL_COUNTY
,:STATUS_CD
,:QUOTE_CREATED_DATE
);
.IMPORT INFILE '/home/adepum2/ABDC.txt'
FORMAT VARTEXT '|'
display errors
NOSTOP
LAYOUT INPUT_RECORD
APPLY insdml;
.END MLOAD;
.LOGOFF;
My txt file looks like:
||ACP 3008641853|00055050-140|JOHN RUSSELL MORAN|02/06/2018
08:52:00|||||GL||13538.00||||||||265 Buckingham
Ct|||||ILSchaumburg|601932084||||02/06/2018 08:33:00
I have tried to look for any Regex in my text file but not able to find it.
Your help would be really appreciated.
Thanks,
phantom
teradata mload
teradata mload
edited Mar 22 at 5:04
Pavel Smirnov
2,332818
2,332818
asked Mar 21 at 18:33
PhantomPhantom
62
62
EOR might be End Of Record, UnixLF
vs WindowsCRLF
? But you shouldn't use legacy MLoad anymore, you better switch to TPT, your case is probably a simple task for the Easy Loader,tdload
.
– dnoeth
Mar 21 at 19:06
Thanks dnoeth, but our company follows the legacy Mload.
– Phantom
Mar 21 at 19:44
Is there any other possible way to solve this issue.
– Phantom
Mar 21 at 20:33
I can't remember if I ever got this error, so I don't know how to fix it, sorry
– dnoeth
Mar 21 at 22:06
Don't think you can specify a row delimiter in MLoad. Use your text editor of choice to see if your records end in LF (or something else) instead of CRLF. Assuming so, use your script language of choice to replace them.
– Andrew
Mar 22 at 14:11
add a comment |
EOR might be End Of Record, UnixLF
vs WindowsCRLF
? But you shouldn't use legacy MLoad anymore, you better switch to TPT, your case is probably a simple task for the Easy Loader,tdload
.
– dnoeth
Mar 21 at 19:06
Thanks dnoeth, but our company follows the legacy Mload.
– Phantom
Mar 21 at 19:44
Is there any other possible way to solve this issue.
– Phantom
Mar 21 at 20:33
I can't remember if I ever got this error, so I don't know how to fix it, sorry
– dnoeth
Mar 21 at 22:06
Don't think you can specify a row delimiter in MLoad. Use your text editor of choice to see if your records end in LF (or something else) instead of CRLF. Assuming so, use your script language of choice to replace them.
– Andrew
Mar 22 at 14:11
EOR might be End Of Record, Unix
LF
vs Windows CRLF
? But you shouldn't use legacy MLoad anymore, you better switch to TPT, your case is probably a simple task for the Easy Loader, tdload
.– dnoeth
Mar 21 at 19:06
EOR might be End Of Record, Unix
LF
vs Windows CRLF
? But you shouldn't use legacy MLoad anymore, you better switch to TPT, your case is probably a simple task for the Easy Loader, tdload
.– dnoeth
Mar 21 at 19:06
Thanks dnoeth, but our company follows the legacy Mload.
– Phantom
Mar 21 at 19:44
Thanks dnoeth, but our company follows the legacy Mload.
– Phantom
Mar 21 at 19:44
Is there any other possible way to solve this issue.
– Phantom
Mar 21 at 20:33
Is there any other possible way to solve this issue.
– Phantom
Mar 21 at 20:33
I can't remember if I ever got this error, so I don't know how to fix it, sorry
– dnoeth
Mar 21 at 22:06
I can't remember if I ever got this error, so I don't know how to fix it, sorry
– dnoeth
Mar 21 at 22:06
Don't think you can specify a row delimiter in MLoad. Use your text editor of choice to see if your records end in LF (or something else) instead of CRLF. Assuming so, use your script language of choice to replace them.
– Andrew
Mar 22 at 14:11
Don't think you can specify a row delimiter in MLoad. Use your text editor of choice to see if your records end in LF (or something else) instead of CRLF. Assuming so, use your script language of choice to replace them.
– Andrew
Mar 22 at 14:11
add a comment |
1 Answer
1
active
oldest
votes
I finally solved the issue.
The issue was about the file type and also with the EOR it was LF not CRLF. I made changes to it and the only file type it was accepting was .DAT. I m not sure why the .DAT file type is being accepted only not the other types.
Thanks guys for your suggestions and spending your valuable time.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55287077%2futy4014-access-module-error-35-received-during-comm-pmreadddparse-operation%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I finally solved the issue.
The issue was about the file type and also with the EOR it was LF not CRLF. I made changes to it and the only file type it was accepting was .DAT. I m not sure why the .DAT file type is being accepted only not the other types.
Thanks guys for your suggestions and spending your valuable time.
add a comment |
I finally solved the issue.
The issue was about the file type and also with the EOR it was LF not CRLF. I made changes to it and the only file type it was accepting was .DAT. I m not sure why the .DAT file type is being accepted only not the other types.
Thanks guys for your suggestions and spending your valuable time.
add a comment |
I finally solved the issue.
The issue was about the file type and also with the EOR it was LF not CRLF. I made changes to it and the only file type it was accepting was .DAT. I m not sure why the .DAT file type is being accepted only not the other types.
Thanks guys for your suggestions and spending your valuable time.
I finally solved the issue.
The issue was about the file type and also with the EOR it was LF not CRLF. I made changes to it and the only file type it was accepting was .DAT. I m not sure why the .DAT file type is being accepted only not the other types.
Thanks guys for your suggestions and spending your valuable time.
answered Apr 3 at 16:20
PhantomPhantom
62
62
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55287077%2futy4014-access-module-error-35-received-during-comm-pmreadddparse-operation%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
EOR might be End Of Record, Unix
LF
vs WindowsCRLF
? But you shouldn't use legacy MLoad anymore, you better switch to TPT, your case is probably a simple task for the Easy Loader,tdload
.– dnoeth
Mar 21 at 19:06
Thanks dnoeth, but our company follows the legacy Mload.
– Phantom
Mar 21 at 19:44
Is there any other possible way to solve this issue.
– Phantom
Mar 21 at 20:33
I can't remember if I ever got this error, so I don't know how to fix it, sorry
– dnoeth
Mar 21 at 22:06
Don't think you can specify a row delimiter in MLoad. Use your text editor of choice to see if your records end in LF (or something else) instead of CRLF. Assuming so, use your script language of choice to replace them.
– Andrew
Mar 22 at 14:11