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

Reply via email to