IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Syncsort getting values from tapes


IBM Mainframe Forums -> JCL & VSAM
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
raj12vel

New User


Joined: 20 Dec 2008
Posts: 43
Location: New Jersey

PostPosted: Mon Sep 28, 2009 4:09 am
Reply with quote

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
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Sep 28, 2009 10:56 am
Reply with quote

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
View user's profile Send private message
raj12vel

New User


Joined: 20 Dec 2008
Posts: 43
Location: New Jersey

PostPosted: Mon Sep 28, 2009 1:53 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Sep 28, 2009 7:53 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Sep 28, 2009 8:08 pm
Reply with quote

What exactly are you after, a list of tapes within a certain dataset name mask ?
Back to top
View user's profile Send private message
raj12vel

New User


Joined: 20 Dec 2008
Posts: 43
Location: New Jersey

PostPosted: Mon Sep 28, 2009 10:18 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Sep 28, 2009 11:09 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
Search our Forums:

Back to Top