From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,46b64c555909c133,start X-Google-Attributes: gid1164f8,public From: "Sue Picard" Subject: Multiple DCL Parameters and GET$FOREIGN in VAX BASIC Date: 1997/12/17 Message-ID: #1/1 X-Deja-AN: 299028074 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Newsgroups: comp.sys.dec Hello All, Anyone up to the challenge of a DCL programming question? I have a DCL batch program that sends 3 parameters to a VAX Basic executable. The Basic exe uses GET$FOREIGN for each of the parameters. The first parameter is just a static value, it is not a 'Px type of parameter that is used when the batch job is submitted. It is an alpha string, like MCT or CVT. The next two parameters are 0P2 and P3, and they are numeric. I am sending them to the executable with single quotes on each side, but the executable reads the first value sent (the MCT, or CVT), then the P2 as one string. I have tried exhausting combinations of single and double quotes to separate the get$foreign, and also got the first value (MCT) to get accepted by the GET$FOREIGN by putting it on it's own line in the DCL, and then the other two parameters together, but the second GET$FOREIGN is reading both P2 and P3 together as one. I know that I can change the GET$FOREIGN command so that it reads the entire group of parameters from one line, and then separate them using various string functions, but I think I remember from WAY back (like, 8 years), a system manager-type I used to know implementing a job that read character and numeric params and sent them to a program *separately* using different combinations of double and single quotes around each parameter that were used as delimiters by the executable. I have RTFM'd all the VAX/DCL documentation we have here, and can't find this anywhere. Is this true? Was it ever? Or, am I just bound to read all the parameters on one line and then have the executable divvy them up? Thanks in advance, -Sue