Include and not-include records in output.

IBM's Sort Product, ICETOOL, ICEMAN and ICEGENER.
Post Reply
KavalJeet
Registered Member
Posts: 48
Joined: Wed Jun 19, 2013 9:47 am

Include and not-include records in output.

Post by KavalJeet »

Hi,

Can we use the SKIPREC=n but not omit the record from the output file. Perhaps I'm not able to put things better in words so I'll show an example:

Input:

Code: Select all

999 
666
333 
111 
222 
Expected Output:

Code: Select all

999 
111 
222 
333 
666
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: Include and not-include records in output.

Post by zprogrammer »

Hi Kavaljeet,

Unfortunately in your example no record is skipped.
zprogrammer
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: Include and not-include records in output.

Post by William Collins »

You mean you want to SORT but leave the first record where it is? First on input is first on output?

Look at ICETOOL's DATASORT operator.
KavalJeet
Registered Member
Posts: 48
Joined: Wed Jun 19, 2013 9:47 am

Re: Include and not-include records in output.

Post by KavalJeet »

Pandora-Box wrote:Hi Kavaljeet,

Unfortunately in your example no record is skipped.
I meant, skipping the first record from sort operation.
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: Include and not-include records in output.

Post by William Collins »

And did you look at DATASORT?
KavalJeet
Registered Member
Posts: 48
Joined: Wed Jun 19, 2013 9:47 am

Re: Include and not-include records in output.

Post by KavalJeet »

Hi Bill,

Unfortunately I did not get a good reference for DATASORT: https://www.google.co.in/search?q=datas ... rt&start=0

ftp is blocked in office so could not open the second link in above. I'll search again.

Thanks for your time.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM DFSort, ICETOOL, ICEMAN, ICEGENER.”