View previous topic :: View next topic
|
Author |
Message |
raj12vel
New User
Joined: 20 Dec 2008 Posts: 43 Location: New Jersey
|
|
|
|
Hi All,
I have a requirement to get unique value from Tapes (Variable block) and the corresponding tape name.
For Example,
Input file
XXX.YYY.*.MTD ==> All the qualifiers are same for all the tapes except the 3rd qualifier ( gave as *) . Have more than 100 tapes with the same qualifiers.
Value starts at position 9 ends at 14 (lenth = 6 bytes)
Required Output:-
Code: |
TAPE NAME UNIQUE VALUE FROM EACH TAPE
XXX.YYY.A.MTD 123456
XXX.YYY.B.MTD 853755
XXX.YYY.C.MTD 235567
XXX.YYY.D.MTD 763584
XXX.YYY.E.MTD 456311
|
Can anyone help me on this? |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
it's probably just me, I haven't the foggiest idea what you are after, what constitutes a unique value from each tape and how do you test for it ?
I'm sure there are more questions but I don't even know where to start.
Gerry |
|
Back to top |
|
|
raj12vel
New User
Joined: 20 Dec 2008 Posts: 43 Location: New Jersey
|
|
|
|
Hi,
Fot testing purpose, I have already converted some of the TAPE files into Sequential files. So thats not a problem.
is there any better way to get the value and its corresponding tape name in the output file?
Just let me know if any other information is required. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Just let me know if any other information is required. |
A whole lot of other information is required. . .
A tape file IS a sequential file. . .
What is this "value"? What is the definition of the records? What are the rules for processing? What are the recfm and lrecl of the files?
Quote: |
is there any better way to get the value |
Better than what? No "way" has been posted, has it?
Keep in mind that your question is completely clear to you, but may not be so clear to others who read the topic.
When you clarify the requirement, someone here should be able to offer suggestions. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What exactly are you after, a list of tapes within a certain dataset name mask ? |
|
Back to top |
|
|
raj12vel
New User
Joined: 20 Dec 2008 Posts: 43 Location: New Jersey
|
|
|
|
Hello
Input file is a Tape file with the LRECL of 2128 bytes Variable Block.
I need to get one field value, lets say user-id ( From Position 9 to 14).
There are duplicates in the input file so i need only unique user-id's.
Thats why i have mentioned before as need to get Unique values from the TAPE files.
Hence output file should contain the unique Account no's as well as its corresponding TAPE file name on which it belongs to. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
AR:
The forum has already gone over the process for selecting only the unique records from a file here in this previous topic from you and well as using the SYMNAMES DD to pass the dataset name into your sort process. What more details do you need?
I'm locking this topic. I'd suggest, if you still don't know how to proceed from this point, that you contact the Syncsort Technical Support directly and post your questions and concerns to them. |
|
Back to top |
|
|
|