View previous topic :: View next topic
|
Author |
Message |
Rudraraju
New User
Joined: 18 Jul 2006 Posts: 1
|
|
|
|
Hi,
can you any one help me , i want to pass data like (A or B or C or D... like this) thru parm and in cobol i want to check in procedure division if A goto para-100 else B goto para-200 like , insted of this how can i code evaluate ...
Raj |
|
Back to top |
|
|
parikshit123
Active User
Joined: 01 Jul 2005 Posts: 269 Location: India
|
|
|
|
Hi,
Code: |
EVALUATE PARAM-VALUE
WHEN 'A'
goto para-100
WHEN 'B'
goto para-200
...
...
END-EVALUATE
|
|
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
hI,
If i understood your requirement, You need to Pass the Parm to cobol program eitehr A or B or C.
There are 2 ways to pass the Para to the Program.
The First is use PARM='A' in the JCL
//COBOLPGM EXEC PGM=PGM
// PARM=('A')
or
pass the Param value thru SYSIN as
//SYSIN DD *
A
/*
//Input ...........
You just choose either of the methods.
Please be free if still not clear with this..
~Vamsi |
|
Back to top |
|
|
creator.abhishek
New User
Joined: 07 May 2006 Posts: 32 Location: Pune
|
|
|
|
hello,
u can pass the value into cobol pragram by giving parm parameter like
//step1 exec pgm=pgm1,parm='xyz'
//...........
that xyz value would be recieve in linkage section of cobol program.. |
|
Back to top |
|
|
Muthukumar.PLindia
New User
Joined: 03 Jul 2006 Posts: 51 Location: Chennai
|
|
|
|
IF we are passing parm from JCL to cobol the linkage section should be coded like this
linkage section
01 ls-var
03 filler pic x(02)
03 ls-parm pic clause
Is it like first 2 bytes will store the length of the parm variable? |
|
Back to top |
|
|
|