Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Ways to go to from one program to other pgm

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
rohitsoni26
Currently Banned

New User


Joined: 14 Nov 2006
Posts: 4
Location: bangalore

PostPosted: Thu Dec 21, 2006 12:15 pm    Post subject: Ways to go to from one program to other pgm
Reply with quote

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
View user's profile Send private message

Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2276
Location: @my desk

PostPosted: Thu Dec 21, 2006 12:33 pm    Post subject:
Reply with quote

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
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 755
Location: Germany

PostPosted: Thu Dec 21, 2006 3:13 pm    Post subject: Re: ways to go to 1 prm to other pgm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Thu Dec 21, 2006 4:05 pm    Post subject: Re: ways to go to 1 prm to other pgm
Reply with quote

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
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 755
Location: Germany

PostPosted: Thu Dec 21, 2006 4:22 pm    Post subject:
Reply with quote

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
View user's profile Send private message
srinivas.cdp

New User


Joined: 22 Jun 2006
Posts: 4

PostPosted: Mon Dec 25, 2006 9:54 pm    Post subject: Re: ways to go to 1 prm to other pgm
Reply with quote

what will happen if i define variable length as packed decimal( means other than half word binary) in linkage section?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Mon Dec 25, 2006 10:35 pm    Post subject: Re: ways to go to 1 prm to other pgm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us