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

Selecting records from a file


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Amit Manas Dubey
Currently Banned

New User


Joined: 15 Dec 2006
Posts: 22
Location: Mumbai

PostPosted: Tue Sep 04, 2007 10:21 pm
Reply with quote

I have a file which has a no of reports in a sequential format. The start of the report can be identified with the String 'D21' which is the name of the report.

I want to download this report and want to ignore the other reports which are present in the same dataset.

The Dataset is so huge, that I cannot open it in the Edit mode.

Can you pls advise as to how can I select all the records in the file after the start of the D21 report ?

Regards,
Amit.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Sep 04, 2007 10:46 pm
Reply with quote

Quote:

Can you pls advise as to how can I select all the records in the file after the start of the D21 report ?


Do you want to select only the records of the D21 report or all the records after D21 report?
Back to top
View user's profile Send private message
Amit Manas Dubey
Currently Banned

New User


Joined: 15 Dec 2006
Posts: 22
Location: Mumbai

PostPosted: Tue Sep 04, 2007 10:47 pm
Reply with quote

I want to select only the records of the D21 report.

Regards,
Amit.
Back to top
View user's profile Send private message
Mickeydusaor

Active User


Joined: 24 May 2006
Posts: 258
Location: Salem, Oregon

PostPosted: Tue Sep 04, 2007 11:49 pm
Reply with quote

You can use VIEW and copy the lines you want into another dataset
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Sep 05, 2007 12:05 am
Reply with quote

Amit Manas Dubey wrote:
I have a file which has a no of reports in a sequential format. The start of the report can be identified with the String 'D21' which is the name of the report.

I want to download this report and want to ignore the other reports which are present in the same dataset.

The Dataset is so huge, that I cannot open it in the Edit mode.

Can you pls advise as to how can I select all the records in the file after the start of the D21 report ?

Regards,
Amit.


If you would provide the particulars about your file, RECFM, LRECL, location of the report ID (D21) and how to identify the end of the report (or the beginning of the next report) and post this in the DFSORT area I'm sure someone will be able to provide a solution.
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: Wed Sep 05, 2007 12:13 am
Reply with quote

Hello,

If D21 will not always be the last report in the file, you need to post how to identify the end of the D21 report.

You might also mention what should happen if there is no D21 report in the file being processed.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top