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: 2284
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: 757
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: 757
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 Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm


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