Jack, I usually use JCLVAR this way (I think you need at least zOS 2.3 or 2.4):
// EXPORT SYMLYST=* // SET EXTNUM=200 //ST010 EXEC PGM=SORT //SYSIN DD *,SYMBOLS=JCLONLY INCLUDE COND=(INP_EXTNTS,GT,&EXTNUM) /* JES should change SYSIN before seeding SORT. Best regards. Max Il giorno gio 3 nov 2022 alle ore 18:23 Jack Zukt <[email protected]> ha scritto: > Hi, > I am trying to improve a SORT by using a variable to specify a Include > variable. > I defined the variable by means of a > //SET#EXTN SET EXTNUM=200 > and then I used > //STEP0100 EXEC PGM=SORT,PARM='JP1"&EXTNUM"' > and > INCLUDE=(INP_EXTNTS,GT,JP1), > > The problem, I think, is that the "200" is then used as C'200' and the > INP_EXTNTS is numeric, > > INP_EXTNTS,*,04,BI > and > SUM FIELDS=(INP_EXTNTS, > > so no records are selected. > Is there a way around this? > > Thanks for your help > Jack > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
