Caveat:  I get the daily digest so I haven't seen any of the hashing this topic 
has received today.  *grin*

I was mildly curious so checked and found that the sample SDSNSAMP(DSN8FPRC) is 
the same for DB2 v7, v8, & v9.  (We don't have v10 yet.)  (ok, with v9 they've 
included Amode 31 & Rmode Any statements.)

For those that haven't looked, the first lines of the member follow.  It 
appears that &SYSPARM is to be the Field Procedure/CSECT name and, according to 
Phil's experience, is expected to be a specific length.  Only know 'nuff HLASM 
to shoot my feet but can &SYSPARM be padded when specified ie. SYSPARM('123    
')?  (I'm presuming John did a quick & dirty assemble without providing a 
value.)

&SYSPARM TITLE 'SAMPLE FIELD PROCEDURE'                  
&SYSPARM AMODE 31                      ADDRESS IN 31 BITS
&SYSPARM RMODE ANY                     RESIDE ANYWHERE   
&SYSPARM START 0                                         

I wonder if Phil's the first person in all these years to attempt a DB2 Field 
Procedure let alone with a name of less than six characters.

ps.  I note this text from my Google search, "DB2 Field Procedures (FieldProcs) 
were introduced in IBM i version 7.1 primarily to help simplify field 
encryption projects." so maybe Phil *is* the 1st on z/OS.

-------->  signature = 6 lines follows  <--------
Neil Duffee, Joe Sysprog, uOttawa, Ottawa, Ont, Canada
telephone:1 613 562 5800 x4585                  fax:1 613 562 5161
mailto:NDuffee of uOttawa.ca     http:/ /aix1.uOttawa.ca/ ~nduffee
"How *do* you plan for something like that?"  Guardian Bob, Reboot
"For every action, there is an equal and opposite criticism."
"Systems Programming: Guilty, until proven innocent"  John Norgauer 2004


-----Original Message-----
From: Phil Smith [mailto:[email protected]] 
Sent: February 27, 2013 13:18
Subject: Re: SAVE macro

Elardus Engelbrecht wrote:
>Which leads me to wonder, after reading all subsequent replies, what was the 
>content of &SYSPARM? Was it empty (spaces) or not?

It contained six non-blank characters. The original value before I tinkered was 
seven bytes. Ah, and if I put a seventh in, it works. So the sample wasn't 
entirely broken, just over-coded - it works equally well with the extra quotes 
removed.

Well, my problem is solved and I feel a wee bit better about the 
sample...thanks all!

From: Phil Smith
Sent: Wednesday, February 27, 2013 10:09 AM
To: [email protected]
Subject: RE: SAVE macro

Thanks, Steve. I had searched for that book but somehow wound up in the 
Assembler Services Guide, which of course wasn't as helpful.

Removing the extra quotes seems to have fixed it:
         SAVE  (14,12),,'&SYSPARM &SYSDATE &SYSTIME'

Am I unreasonable to be vaguely horrified that the samples don't even work?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to