If you make your APARMLST a Y type instead of an H type, that will solve the syntax problem. H types must be self-defining while Y and A types can involve computations. (Remember to change the single quotes to parentheses.)
:>: -----Original Message----- :>: From: IBM Mainframe Assembler List [mailto:ASSEMBLER- :>: l...@listserv.uga.edu] On Behalf Of Fred Rodgers :>: Sent: Tuesday, October 02, 2012 10:10 AM :>: To: ASSEMBLER-LIST@LISTSERV.UGA.EDU :>: Subject: Passing a parm between to programs :>: :>: Hello, :>: :>: Trying to send a single parm from one assembler program to another. The :>: second program will :>: Process the parm (just a time value for an STIMER macro) then return. I :>: want program2 set up :>: to allow a JCL parm or be called by other programs. It works fine for :>: the JCL side, but is not :>: working for the program to program call (error below). Have read that :>: you need set up program1 :>: similar to the below to act more like the operating system when going :>: from program to program. :>: There was also an example as outlined below. Problem is, the halfword :>: definition dont work. :>: Trying to figure out how to code that part. The intent is to send the :>: first halfword as a parm length, :>: then the actual STIMER parm handled by program2. Programs are non- :>: RENT/REUS at this point. :>: Any pointer to a manual or suggestion would be appreciated on how to :>: handle the halfword or :>: anything else I am missing. :>: :>: LINK EP=PROGRAM2,PARAM=(APARMLST),VL=1 :>: :>: APARMLST DC H'APARMEND-APARMVAL' :>: APARMVAL DC C'00050000' :>: APARMEND EQU * :>: :>: 000280 194 APARMLST DC H'APARMEND- :>: APARMVAL' :>: ** ASMA074E ILLEGAL SYNTAX IN EXPRESSION - APARMEND- :>: APARMVAL' :>: ** ASMA104W STATEMENT PROCESSING :>: INCOMPLETE