File record number in mload
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


File record number in mload Expand / Collapse
Author
Message
Posted 8/27/2008 8:11:56 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 11/6/2008 6:51:57 AM
Posts: 11, Visits: 169
Hi all.

I'm trying to find a way to get the record number (recno) of a record in the INFILE and use it as an insert value, but I've not been able to sort it out.

I've tried &SYSRCDCNT in several ways, but still no avail.

TIA.

Cheers.

Carlos.
Post #12750
Posted 8/27/2008 9:48:17 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 11/12/2008 4:01:17 PM
Posts: 91, Visits: 118
Use an IDENTITY column:

http://www.teradataforum.com/teradata/20040526_023940.htm
Post #12751
Posted 8/28/2008 3:21:31 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 11/6/2008 6:51:57 AM
Posts: 11, Visits: 169
Jeff:

If I wanted to use an IDENTITY column, I would have used it.

My requirement -and I think I expressed it specifically- is to use the file record number.

If there is a way in multiload to access the record number, and you know it, and you are so kind to provide it, OK.

Otherwise, don't throw 'wise guy' answers.

Cheers.

Carlos.
Post #12764
Posted 8/28/2008 7:41:32 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 11/12/2008 4:01:17 PM
Posts: 91, Visits: 118
This was not a wise guy answer. Thanks for the wonderful feed back.
Post #12767
Posted 8/28/2008 7:12:57 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 11/18/2008 6:27:19 PM
Posts: 23, Visits: 76
To my knowledge neither FastLoad or MultiLoad have a mechanism to allow you to perform this task.
Your two options are (as previously, correctly suggested) firstly to use an Identity column (although record numbering will not be sequential), or secondly to develop an INMOD/Batch script (Unix shell script is an alternative) to modify the data file before the load takes place.
Post #12777
Posted 8/29/2008 6:11:35 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 11/6/2008 6:51:57 AM
Posts: 11, Visits: 169
>>"To my knowledge neither FastLoad or MultiLoad have a mechanism to allow you to perform this task."

OK. Many Thanks. This was the answer that I was looking for.

>>"Your two options are (as previously, correctly suggested) firstly to use an Identity column (although record numbering will not be sequential),"

Wrong. Identity column was not 'correctly suggested' since my requirement demands a relationship between the file record number and one attribute (column) in the table.

>>" or secondly to develop an INMOD/Batch script (Unix shell script is an alternative) to modify the data file before the load takes place."

Yup. The shell scripting was the way I took...

Thanks.

Cheers.

Carlos.
Post #12780
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 6:38pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.078. 10 queries. Compression Disabled.