# check if two PD values are equal, no matter if one is neg.

Author Message
Ali_gezer

Active User

Joined: 06 Apr 2021
Posts: 120
Location: argentina

Posted: Thu Jul 29, 2021 11:05 pm

Hello, how are you?

Input file
 Code: 4425480000006065    .              -278.12 .         2021-07-20 4425480000002080    .              3000.00 .         2021-07-19 4425480000002080    .             -3000.00 .         2021-07-19 4425480000000299    .               -72.00 .         2021-07-19 4425480000007267    .              1169.50 .         2021-07-19 4425480000007267    .             -1169.50 .         2021-07-19 4425480000006065    .              -23278.12 .         2021-07-20

I have to erase those registers that are equal, no matter if one of the number is negtive

For example, in this case I have to eliminate the 2, 3, 5 and 6 register.

I was thinking in pass them to zd format and with that erase the negative symbol but there are negative numbers not to be erased, I have to only erase those that are repeating.

Desired output:

 Code: 4425480000006065    .              -278.12 .         2021-07-20 4425480000000299    .               -72.00 .         2021-07-19 4425480000006065    .              -23278.12 .         2021-07-20

Have you any idea?

Thanks.
sergeyken

Senior Member

Joined: 29 Apr 2008
Posts: 1614

Posted: Fri Jul 30, 2021 1:08 am

#1. Plan the logical way: what is the sequence of elementary steps to do what you need? (unrelated to neither SORT, nor whatever else). This is called with the word “algorithm”.

#2. Try to find out the available SORT operations to implement your algorithm.

Otherwise your question sounds as: “Please, do my own job for me!”

BTW, what is the word “register” in your terminology???

You are removing 3000.00 and -3000.00
What if there were 3000.00 and 3000.00? They are EQUAL, too!

Etc, etc… 100 questions. Lazy to print all of them - this should be your responsibility to explain this clearly.

 Quote: Have you any idea?

This is a question for yourself, not for the forum…
Ali_gezer

Active User

Joined: 06 Apr 2021
Posts: 120
Location: argentina

Posted: Fri Jul 30, 2021 1:22 am

 sergeyken wrote: #1. Plan the logical way: what is the sequence of elementary steps to do what you need? (unrelated to neither SORT, nor whatever else). This is called with the word “algorithm”. #2. Try to find out the available SORT operations to implement your algorithm. Otherwise your question sounds as: “Please, do my own job for me!” BTW, what is the word “register” in your terminology???

Record, excuse me.
Ali_gezer

Active User

Joined: 06 Apr 2021
Posts: 120
Location: argentina

 Posted: Fri Jul 30, 2021 1:24 am I found a way to solve this, I did not ask no-one to do my job, simple give some clue or idea, but well, it seems that everytime I make some question you are here to reproach me something while other forum members simple give some idea or clue to research. As I said, i do not want code, simple a clue, is evident that I search the forum and I did not find any casuistry similar to this.
sergeyken

Senior Member

Joined: 29 Apr 2008
Posts: 1614

Posted: Fri Jul 30, 2021 1:27 am

 Ali_gezer wrote: I found a way to solve this, I did not ask no-one to do my job, simple give some clue or idea, but well, it seems that everytime I make some question you are here to reproach me something while other forum members simple give some idea or clue to research. As I said, i do not want code, simple a clue, is evident that I search the forum and I did not find any casuistry similar to this.

I gave you the clear idea of two obvious steps. You decided to ignore it; it’s up to you.
 View Bookmarks All times are GMT + 6 Hours

 Topic Forum Replies Similar Topics Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2 Generate output lines (SYSIN card for... DFSORT/ICETOOL 4 EMPTY file check scenario JCL & VSAM 6 Conditional replace values in output ... DFSORT/ICETOOL 3 Join files where value in one is betw... DFSORT/ICETOOL 6
Search our Forums:

 IBMMainframes.com is not an official and/or affiliated with IBM® in anyway Board Rules | FAQ | Downloads | Wiki | SiteMap | Contact Us