Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

JCL & VSAM :: Creating a dynamic sort card in JCL using sort

$
0
0
Author: ChitraChhabra
Subject: Creating a dynamic sort card in JCL using sort
Posted: Wed Aug 03, 2016 6:15 pm (GMT 5.5)

I need to create a dynamic control card in JCL using sort.
File may have 1 record or more.

Its a PS file and will be looking like:

XXXXYYZZ
AAAABBCC
PPPPQQRR

I want my query like:

1. select * from EMP table where
(NAME = 'XXXX'
AND ID = 'YY'
AND TOWN = 'ZZ')
OR
(NAME = 'AAAA'
AND ID = 'BB'
AND TOWN = 'CC')
OR
(NAME = 'PPPP'
AND ID = 'QQ'
AND TOWN = 'RR')
;


Viewing all articles
Browse latest Browse all 9405

Latest Images

Trending Articles



Latest Images