INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

QMFBATCH

QMFBATCH

(OP)
Executando qmfbatch com variavel

1) jcl
//STEP1 EXEC DB2QMFBT
//QMFBATCH.DSQPRINT DD DSN=MV.PCDB.PRV.TESTE,
// SPACE=(CYL,(600,300),RLSE),
// DISP=(,CATLG,DELETE),UNIT=(DISCO,15),
// DCB=(MV.A,LRECL=999,RECFM=VB,DSORG=PS)
//SYSTSIN DD *
ISPSTART PGM(DSQQMFE) NEWAPPL(DSQE) -
PARM(S=DB2, +
M=B, +
I=PCP972.P_PRED_PARTC( +
&&DATA_INICIO='''01.01.2015''' +
&&DATA_FIM='''31.01.2015''' )
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=Y
//*

2) query
--------------------------------------------------------

SQL QUERY PCP972.Q_PREDITIVO_PARTICIPANTE
select *
from tabela
where
T29.DVDA_PRODT_PREVD >= &DATA_INICIO
AND T29.DVDA_PRODT_PREVD <= &DATA_FIM
WITH UR;

3) proc
--------------------------------------------------------
PROC PCP972.P_PRED_PARTC

SET GLOBAL (QUOTE ='
SET GLOBAL (DATA_INICIO=&DATA_INICIO
SET GLOBAL (DATA_FIM=&DATA_FIM
RUN PCP972.Q_PREDITIVO_PARTICIPANTE
PRINT REPORT(PA=NO DATETIME=NO CC=NO LENGTH=CONT)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close