I have a DB2 table and need to insert the row values periodically,I just dont want to again go for cobol program. Is it possible to do in JCL
Table NAME : INV_DS_record
PGM_NAME CHAR(8)
CA_CODE CHAR(5)
MAIL_ID CHAR(100)
MAIL_IND CHAR(1)
UPD_DATE DATE
UPD_ID CHAR(8)
LANID CHAR(8)
CA_CODE CHAR(5)
MAIL_ID CHAR(100)
MAIL_IND CHAR(1)
UPD_DATE DATE
UPD_ID CHAR(8)
LANID CHAR(8)
For eg:-
INSERT INTO INV_DS_record
(PGM_NAME
,CA_CODE
,MAIL_ID
,MAIL_IND
,UPD_DATE
,UPD_UID
,LANID)
VALUES ('sample'
,'dummy'
,'test@xxxx.com'
,'A'
,CURRENT TIME-STAMP
,'frame'
,'wwwwwwww')
(PGM_NAME
,CA_CODE
,MAIL_ID
,MAIL_IND
,UPD_DATE
,UPD_UID
,LANID)
VALUES ('sample'
,'dummy'
,'test@xxxx.com'
,'A'
,CURRENT TIME-STAMP
,'frame'
,'wwwwwwww')
Sometimes may need to insert more than one row with different column values
Please let me know any ideas to do the above process thru JCL.
Thanks;
shyamsarvan