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
 

 

Extracting required records from the file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
169354
Currently Banned

New User


Joined: 14 May 2007
Posts: 5
Location: chennai

PostPosted: Tue May 22, 2007 11:18 am    Post subject: Extracting required records from the file
Reply with quote

My input records looking like this.

000000.00
000012.01
000046.65
000000.00

I want the records greater than 0.00 value. i want to delete the records having values less than or equal to 000000.00

Then I have to subtract 0.01 from the remaining records. Is it possible thro sort or icetool?

These records starting at postion 30.

Output should be looks like..

000012.00
000046.64

lrecl=80 and fixed block.
Back to top
View user's profile Send private message

169354
Currently Banned

New User


Joined: 14 May 2007
Posts: 5
Location: chennai

PostPosted: Tue May 22, 2007 12:45 pm    Post subject: Extracting records greater than 0.00 value usign Easytrieve
Reply with quote

My input records looking like this.
000000.00
000012.01
000046.65
000000.00


i want the records greater than 0.00 value. i want to delete the records having values less than 000000.00

then i have to subtract 0.01 from the remaining records. is it possible thro easytrieve?
these records starting at postion 30.

output should be looks like..

000012.00
000046.64



lrecl=80 and fixed block. need immediate reply plz
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Tue May 22, 2007 2:47 pm    Post subject: Re: Extracting records greater than 0.00 value usign Easytri
Reply with quote

169354 wrote:
is it possible thro easytrieve?
Yes, quite easy.....
Define the input as two fields separated by the decimal point and move them to two fields next to each other.
Redefine those two fields as a single numeric field with an implied decimal.
Do your testing and math on the field, move it to an edited output field and write it out.
Back to top
View user's profile Send private message
169354
Currently Banned

New User


Joined: 14 May 2007
Posts: 5
Location: chennai

PostPosted: Tue May 22, 2007 6:17 pm    Post subject:
Reply with quote

Sorry friend,

am very new to easytrieve.. whatever u mentioned i couldnt able to understand .. can u plz write the code for this?
Back to top
View user's profile Send private message
169354
Currently Banned

New User


Joined: 14 May 2007
Posts: 5
Location: chennai

PostPosted: Tue May 22, 2007 6:21 pm    Post subject:
Reply with quote

i got the data excp error soc7 error...

couldnt able to fix it.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Tue May 22, 2007 6:50 pm    Post subject:
Reply with quote

Do you have access to the Application Guide and the Reference Guide?
Back to top
View user's profile Send private message
foliater

New User


Joined: 06 Apr 2006
Posts: 31

PostPosted: Tue May 22, 2007 7:55 pm    Post subject:
Reply with quote

Eliminating records will not be a great deal.

Add the below step in your SYSIN
OMIT COND(30,9,CH,LE,C'000000.00')

To subtract values, you have use COBOL. Not possible in 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 -> 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 Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm


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