I *strongly* recommend using COMP-5 - just in case IBM ever allows for LARGE parms (and this would work with any setting of the TRUNC compiler option). However, COMP, BINARY, and COMP-5 should all work exactly the same as long as MVS only allows for a 100 character maximum (and as long as you are porting your source code to a "little-endian" environment).
P.S. If you know that you will have 80 bytes or less, then you can also use the CEE3PRM callable service. See: http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ceea3160/2.2.5.12 P.S. The PARM-LENGTH, followed by PARM-DATA method is currently UNDOCUMENTED in both the LE and COBOL documentation. I have done several RCF's on this and never heard exactly how IBM will fix this. As far as I know, they have no (current) intention of "breaking" this feature, but as it is no longer a "documented user interface" - you might want to switch to the CEE3PRM solution - at least until it returns to the COBOL or LE documentation. "Mike Bell" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > I always used s9(4) comp not binary. > don't remember what binary does right now > > Mike > > On 11/8/05, Craig Kittendorf <[EMAIL PROTECTED]> wrote: > > > > Hi, > > I've done this before but can't get it to work now. I'm trying to pass an > > EXEC PARM field to a batch COBOL program. I have the following: > > > > LINKAGE SECTION. > > 01 LS-PARM. > > 05 LS-PARM-DATA-LENGTH PIC 9(04) BINARY. > > 05 LS-PARM-DATA PIC X(100). > > PROCEDURE DIVISION USING LS-PARM. > > DISPLAY ' ParmLen: ' LS-PARM-DATA-LENGTH. > > > > //STEP1 EXEC PGM=JDCXXXX,REGION=4M,PARM='JFIPJFIA' > > > > The parm length always displays as 1036 ( x'040C') and ls-parm-data is > > also > > garbage. Guess I'm too tired to see what I'm missing. > > > > Thanks, > > Craig > > > > ---------------------------------------------------------------------- > > For IBM-MAIN subscribe / signoff / archive access instructions, > > send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO > > Search the archives at http://bama.ua.edu/archives/ibm-main.html > > > > > > -- > Mike > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO > Search the archives at http://bama.ua.edu/archives/ibm-main.html > > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

