View previous topic :: View next topic
|
Author |
Message |
rohitsoni26 Currently Banned New User
Joined: 14 Nov 2006 Posts: 4 Location: bangalore
|
|
|
|
1)how many types we can go from 1 prm to another pgm. 1st i know by CALL other?
2) When we pass data from 1 pgm to another then what we have to write in pgm 2 under linkage section,
3)what is the meaning of perform test before ,perform test after
plzzz writ all logig steps |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Quote: |
When we pass data from 1 pgm to another then what we have to write in pgm 2 under linkage section |
For the called pgm to access the passed variables you should define them under the linkage section of the called progam
Quote: |
what is the meaning of perform test before ,perform test after |
Test is performed before execution of the specified para/section in PERFORM with TEST BEFORE.If you dont specify anything it will take TEST BEFORE.
Thanks
Arun |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
Top-2)
Don't forget the obligatory four bytes for parm length.
In my example it's called LINK-PARM-LAENGE.
You allway have to declare the ParmLengthField as first field in your strucure.
LINKAGE SECTION.
*-------------------------------------------------------
* JOB-CONTROL-PARAMETER BY EXEC
*-------------------------------------------------------
01 LINK-PARM.
05 LINK-PARM-LAENGE PIC S9(04) BINARY.
05 LINK-PARM-FUBIT PIC X(02).
05 LINK-PARM-FUFIL PIC X(01).
05 LINK-PARM-FUTXT PIC X(40).
Regards, UmeySan |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
UmeySan wrote: |
obligatory four bytes for parm length |
really?
Quote: |
You allway have to declare the ParmLengthField as first field in your strucure |
always? Why? |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi Will !
Sorry, seams that i'm a little bit upsend today.
Obligatory & allways if programm is executed by jcl and parm is transfered by jcl to programm.
Pgm to Pgm conection -> no ParmLengthField needed.
Thanks for correcting my confusion.
UmeySan |
|
Back to top |
|
|
srinivas.cdp
New User
Joined: 22 Jun 2006 Posts: 4
|
|
|
|
what will happen if i define variable length as packed decimal( means other than half word binary) in linkage section? |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
srinivas.cdp wrote: |
what will happen if i define variable length as packed decimal( means other than half word binary) in linkage section? |
If you do, you will have exactally what you defined, in other words, "variable length as packed decimal( means other than half word binary) in linkage section". |
|
Back to top |
|
|
|