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
 

 

Condition read and write -- using fileaid

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools
View previous topic :: :: View next topic  
Author Message
mpawan
Warnings : 2

New User


Joined: 03 Nov 2008
Posts: 42
Location: Pune

PostPosted: Mon Mar 15, 2010 4:38 pm    Post subject: Condition read and write -- using fileaid
Reply with quote

Hi,

I have a file whose structure is :-

Code:
xxxxx20090305agagagag -- header
     31231231237[b]09/20/09[/b]381723901230 -- rec
     31231231237[b]09/20/09[/b]381723901230 -- rec
     31231231237[b]09/20/09[/b]381723901230 -- rec
     31231231237[b]09/20/09[/b]381723901230 -- rec
xxxxx20090306agagagag -- new header
     31231231237[b]09/20/09[/b]381723901230 -- rec
     31231231237[b]09/20/09[/b]381723901230 -- rec
     31231231237[b]09/20/09[/b]381723901230 -- rec
     31231231237[b]09/20/09[/b]381723901230 -- rec



Using this file i have to perform following operations using fileaid:-

1) If header date is smaller than the sample date, we need to drop the records till the new header is encountered.

2)If header date is greater than or equal to the sample date, we need to write the records in a file and also check the dates in record and if the record date is less than sample date then we have to drop those record and don't have to be written in the o/p file.

And the criteria is we can only use Fileaid utility in our JCL.

I have coded this in COBOL but need to do it using Fileaid as i am new to fileaid, it would be appreciative if any one of you can help me

Thanks in advance.
Back to top
View user's profile Send private message

Ranjithkumar

New User


Joined: 10 Sep 2008
Posts: 94
Location: India

PostPosted: Thu Apr 01, 2010 1:34 pm    Post subject: Reply to: Condition read and write -- using fileaid
Reply with quote

Do you have any layouts for the header and data records?
Back to top
View user's profile Send private message
mpawan
Warnings : 2

New User


Joined: 03 Nov 2008
Posts: 42
Location: Pune

PostPosted: Thu Apr 01, 2010 1:38 pm    Post subject:
Reply with quote

Header will start with a number like xxxxx which will be unique and different from record.
Back to top
View user's profile Send private message
Ranjithkumar

New User


Joined: 10 Sep 2008
Posts: 94
Location: India

PostPosted: Thu Apr 01, 2010 1:42 pm    Post subject: Reply to: Condition read and write -- using fileaid
Reply with quote

I think its not possible with FILEAID. I would suggest you go for SORT.
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 -> Compuware & Other Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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
No new posts Can you write 2 recs on SORTOUT when ... Sysaron DFSORT/ICETOOL 6 Thu Feb 23, 2017 12:07 am
No new posts Joinkeys with condition scdinesh DFSORT/ICETOOL 10 Tue Feb 14, 2017 12:20 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm


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