SQL scratch usage in CA-IDMS