Thanks for information.
Yes, it require to use in symbolic. I will further check for Jim's recommendation.
Will Broadcom add "conditional IF THEN/ELSE processing for the PROC statement values" in later version?
Original Message:
Sent: Nov 23, 2024 06:18 PM
From: Joseph Walther
Subject: Processor symbolic query
Hey Danny
Is it really a processor symbolic that you need? If your downstream references to the new symbolic have "//" in columns 1, then, yes you need a processor symbol, and Jim's suggestions deserve consideration.
On the other hand, if your downstream references to the new symbolic are within in-stream data, then there is an alternative. If downstream references look like this:
//INPUT DD *
. . .
. . . &NEWVALUE
. . .
Then insert a step before the first reference and use embedded REXX to assign a value for NEWVALUE. Here is an example inserted step:
000001 //CCIDEDIT EXEC PGM=IRXJCL,PARM=' ' <- Hex 00 in parm
000002 //SYSEXEC DD *
000003 Trace R
000004 char1 = Substr('&C1CCID',1,1)
000005 charType= DATATYPE(char1)
000006 IF charType = 'NUM' then NEWVALUE = Substr("&C1CCID",2)
000007 ELSE NEWVALUE = "&C1CCID"
000008 Push " CCID '" || NEWVALUE || "'"
000009 "EXECIO 1 DISKW OUTPUT (Finis"
000010 Exit(0)
000011 //*OUTPUT DD SYSOUT=* <- route as input to downstream step(s)
000012 //OUTPUT DD DSN=&&NEWVALUE,DISP=(NEW,PASS),
000013 // UNIT=SYSDA,SPACE=(TRK,(1,1)),
000014 // DCB=(RECFM=FB,LRECL=80,BLKSIZE=8000)
000015 //SYSTSPRT DD SYSOUT=*
Then the downstream reference can look something like this…
//INPUT DD *
. . .
// DD DSN=&&NEWVALUE,DISP=(OLD,PASS)
// DD *
. . .
Original Message:
Sent: Nov 21, 2024 02:58 AM
From: Danny Cheng
Subject: Processor symbolic query
I have the following condition for processor symbolic:
CCID first char is 0-9, symbolic - XXX=@&C1CCID(2,7)
CCID first char is A-Z, symbolic - XXX=&C1CCID
It require to have "26 + 10" symbolic in processor.
XXX="TEMP&C1CCID(1,1)"
TEMP0=@&C1CCID(2,7)
....
TEMP9=@&C1CCID(2,7)
TEMPA=&C1CCID
....
TEMPZ=&C1CCID
May i know any better way to code the processor symbolic with this kind of condition?