Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Syncsort getting values from tapes

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Syncsort getting values from tapes
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: 1703
Location: Australia

PostPosted: Mon Sep 28, 2009 10:56 am    Post subject:
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    Post subject: Reply to: Syncsort getting values from tapes
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

Site Director


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

PostPosted: Mon Sep 28, 2009 7:53 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Sep 28, 2009 8:08 pm    Post subject:
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    Post subject: Reply to: Syncsort getting values from tapes
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

Moderator Team Head


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

PostPosted: Mon Sep 28, 2009 11:09 pm    Post subject: Reply to: Syncsort getting values from tapes
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.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts DB2 NULL Values display V S Amarendra Reddy DB2 3 Thu Sep 07, 2017 6:59 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us