Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Scan and write records

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
brahmanandarm

New User


Joined: 15 Jun 2009
Posts: 28
Location: bangalore

PostPosted: Fri Feb 26, 2010 7:18 pm    Post subject: Scan and write records
Reply with quote

Hi All,
I have a requirement.
I have a an FB file of lenght 80 with followign records


EREWJ505 --------- STRING(S) FOUND ----------------
QEWQJ506 --------- STRING(S) FOUND ----------------
GEREJ098 --------- STRING(S) FOUND ----------------
114 DISCARD FROM TABLE QBCE.DKALALAL
QWEWJ099 --------- STRING(S) FOUND ----------------
118 DISCARD FROM TABLE AERE.TDFASDSA
228 DISCARD FROM TABLE AERE.TREEQWER
QEEQJ03M --------- STRING(S) FOUND ----------------
113 ASSE.DAEREA6 A
EQELJAA0 --------- STRING(S) FOUND ----------------
EEREJAA9 --------- STRING(S) FOUND ----------------
QWELJADA --------- STRING(S) FOUND ----------------
136 -TERM UTIL(FDAEE1.AERWQWEA)



I would need the output as

GEREJ098 --------- STRING(S) FOUND ----------------
114 DISCARD FROM TABLE QBCE.DKALALAL
QWEWJ099 --------- STRING(S) FOUND ----------------
118 DISCARD FROM TABLE AERE.TDFASDSA
228 DISCARD FROM TABLE AERE.TREEQWER
QEEQJ03M --------- STRING(S) FOUND ----------------
113 ASSE.DAEREA6 A
QWELJADA --------- STRING(S) FOUND ----------------
136 -TERM UTIL(FDAEE1.AERWQWEA)


i.e. i need to discard records where there
ABCDJ121 --------- STRING(S) FOUND ----------------
EFGHJ502 --------- STRING(S) FOUND ----------------
REWWJ503 --------- STRING(S) FOUND ----------------
REWWJ504 --------- STRING(S) FOUND ----------------
EREWJ505 --------- STRING(S) FOUND ----------------
QEWQJ506 --------- STRING(S) FOUND ----------------
EQELJAA0 --------- STRING(S) FOUND ----------------
EEREJAA9 --------- STRING(S) FOUND ----------------
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: Fri Feb 26, 2010 9:29 pm    Post subject:
Reply with quote

Hello,

In addition to data examples, you need to post "the rules" for processing. . .

You also need to re-check the sample data. . . How can "ABCDJ121 --------- STRING(S) FOUND ---------------- " be "discarded" when it is not in the input file?
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Fri Feb 26, 2010 10:05 pm    Post subject:
Reply with quote

brahmanandarm,

It's not clear what you want to do. Please explain the "rules" for getting from input to output. Do you actually have two input files? Or just one?
Do you want to match records between the two files? Or do you want to remove records in the one file that have 'STRING(S) FOUND" not followed by another record, or what? We can't help you until you explain clearly what you're trying to do.

Also, what is the RECFM and LRECL of the input file(s). What is the starting position, length and format of each relevant field?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts Write R1 and R2 to OP1 and R1 to OP2 bhaskar_kanteti DFSORT/ICETOOL 10 Fri Mar 03, 2017 11:18 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us