Hi,
MAX is a scalar function which gives the maximum value out of the column it is applied on. For a numeric column I understand how it can work but how MAX work on a CHAR column?
And what is the column has both numbers and characters.
Search found 6 matches
- Fri Dec 04, 2015 11:33 am
- Forum: IBM DB2 and IMS DB/DC
- Topic: Making MAX function work on CHAR column.
- Replies: 1
- Views: 401
- Fri Dec 04, 2015 11:29 am
- Forum: SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.
- Topic: Increase the length in VSAM.
- Replies: 4
- Views: 1480
Re: Increase the length in VSAM.
Is there no tool which can right way update the VSAM itself, Robert?
What other data sets are you talking about?Robert Sample wrote:for VSAM or any other data set.
- Fri Dec 04, 2015 11:28 am
- Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
- Topic: SUM FIELDS=NONE in sort.
- Replies: 7
- Views: 4190
Re: SUM FIELDS=NONE in sort.
Read the above posts again and have some questions: If your data is already in sequence by the key, then using SORT and SUM is a very inefficient way of removing duplicate keys. There's also ICETOOL's SELECT operator which provides further options (like keeping the discards, only keeping unique/non-...
- Fri Dec 04, 2015 11:24 am
- Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
- Topic: SUM FIELDS=NONE in sort.
- Replies: 7
- Views: 4190
Re: SUM FIELDS=NONE in sort.
If you specify FIELDS=NONE, the actually summing is not done, and with a non-unique key the first record of each key which arrives at the SUM processing is the one which is written out. If actual summing is not done then what exactly happens? Does SORT "ignore" to sum when it sees the key...
- Mon Nov 09, 2015 1:34 pm
- Forum: SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.
- Topic: Increase the length in VSAM.
- Replies: 4
- Views: 1480
Increase the length in VSAM.
Hi All,
If we want to increase the length of the VSAM, how can we do this?
I have done it using File-aid but interviewer wanted to ask some toerh way. How is it possibe to increase the length?
The question was about KSDS but can there be similar ways for other VSAM files?
Regards
If we want to increase the length of the VSAM, how can we do this?
I have done it using File-aid but interviewer wanted to ask some toerh way. How is it possibe to increase the length?
The question was about KSDS but can there be similar ways for other VSAM files?
Regards
- Mon Nov 09, 2015 1:30 pm
- Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
- Topic: SUM FIELDS=NONE in sort.
- Replies: 7
- Views: 4190
SUM FIELDS=NONE in sort.
Hi,
To remove duplicates from a file we can use SUM FIELDS=NONE in sort. But I don't understand it, why it removes dulicates? If I'll provide some values for SUM FIELDS, it will sum the number in that place then how it removes duplicates with NONE? Can anyone please explain this concept?
To remove duplicates from a file we can use SUM FIELDS=NONE in sort. But I don't understand it, why it removes dulicates? If I'll provide some values for SUM FIELDS, it will sum the number in that place then how it removes duplicates with NONE? Can anyone please explain this concept?