Page 1 of 1

Why the ISFROWS1 is diffenent between on batch with ISPF

PostPosted: Fri May 28, 2010 11:14 am
by ibmrexx
I have the following questions :

1.Running my REXX under ISPF/PDF

under ispf p.6

EX TEST.BJSP55.ZTB9TMP(SCHDA04)
/* REXX */
RC=ISFCALLS(ON)
ISFOWNER ="BJSP55"
ADDRESS SDSF "ISFEXEC ST (DELAYED ALTERNATE)"
IF RC<>0 THEN EXIT RC
SAY "NUMBER OF ROWS RETURNED:" ISFROWS
RC=ISFCALLS(OFF)
EXIT 0

*****************************************************************

output:
3 *-* RC=ISFCALLS(ON)
4 *-* SAY 'RC1=' RC
RC1= 0
5 *-* ISFOWNER ="CCBSP02"
6 *-* ADDRESS SDSF "ISFEXEC ST (DELAYED ALTERNATE)"
>>> "ISFEXEC ST (DELAYED ALTERNATE)"
7 *-* SAY 'RC2=' RC
RC2= 0
8 *-* SAY "ISFROWS1:" ISFROWS
ISFROWS1: 27
9 *-* IF RC<>0
10 *-* SAY "NUMBER OF ROWS RETURNED:" ISFROWS
NUMBER OF ROWS RETURNED: 27
11 *-* RC=ISFCALLS(OFF)
12 *-* EXIT 0

********************************************************************

2.Running the REXX on batch

//RUNSCHDA JOB ADM#,TIME=1440,NOTIFY=&SYSUID,CLASS=2,
// MSGCLASS=X,MSGLEVEL=(1,1),REGION=4M
//JOBLIB DD DSN=DSN810.SDSNLOAD,DISP=SHR
//RUNREXX EXEC PGM=IKJEFT01,DYNAMNBR=30,REGION=0M
//SYSEXEC DD DISP=SHR,DSN=TEST.BJSP55.ZTB9TMP
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
%SCHDA04
/*
output:
********************************* TOP OF

3 *-* RC=ISFCALLS(ON)
4 *-* SAY 'RC1=' RC
RC1= 0
5 *-* ISFOWNER ="CCBSP02"
6 *-* ADDRESS SDSF "ISFEXEC ST (DELAYED ALTERNATE)"
>>> "ISFEXEC ST (DELAYED ALTERNATE)"
7 *-* SAY 'RC2=' RC
RC2= 0
8 *-* SAY "ISFROWS1:" ISFROWS
ISFROWS1: 0
9 *-* IF RC<>0
10 *-* SAY "NUMBER OF ROWS RETURNED:" ISFROWS
NUMBER OF ROWS RETURNED: 0

******************************** BOTTOM O

Why the ISFROWS1 is diffenent between on batch with under ISPF/PDF?

Thanks a lot!

Best Regards,

Jason Cai

Re: Why the ISFROWS1 is diffenent between on batch with ISPF

PostPosted: Sat May 29, 2010 1:16 pm
by enrico-sorichetti
posting the same questions to multiple forums is considered bad manners...
people hanging on the MVS/zOS related forums are mostly the same,
seeing the same question asked over and over is an annoyance
and You will not get double answers in the same time or the same answers in half time :evil:
and the duplicate answers with the same info are just a waste of time for everybody!