Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Passing Array through PARM parameter

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Velkumar

New User


Joined: 23 Apr 2007
Posts: 18
Location: India

PostPosted: Mon Jul 02, 2007 9:27 am    Post subject: Passing Array through PARM parameter
Reply with quote

Hi

Is it possible to pass an array thorugh PARM parameter in JCL. If so then how to define it in the linkage section.

One more query is it possible to pass an index via PARM parmeter.
Back to top
View user's profile Send private message

Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Mon Jul 02, 2007 9:37 am    Post subject:
Reply with quote

You can pass data from JCL thru PARM. In linkage it really depends on how you want to use the data, you can define as array in linkage.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jul 02, 2007 8:39 pm    Post subject:
Reply with quote

Hello,

Please post an example of the array data you want to pass form JCL into the program.

Please clarify what you mean by "pass an index" with an example of that also.
Back to top
View user's profile Send private message
Velkumar

New User


Joined: 23 Apr 2007
Posts: 18
Location: India

PostPosted: Tue Jul 03, 2007 1:43 pm    Post subject:
Reply with quote

Hi Dick

In PARM parameter I want to pass it like this 2848586878
But in the program it has to store as subscripts of 5.
For eg A(1) will contain 28
A(2) will contain 48
A(3) will contain 58
and so on.

Reg the index
We can declare the array by

02 A PIC X(10) occurs 8 times indexed by ws-index1
If we pass parm parameter as 1 can we use it for the index variable Ws-index1

Hope this describes more.
Back to top
View user's profile Send private message
Nimesh.Srivastava

New User


Joined: 30 Nov 2006
Posts: 78
Location: SINGAPORE

PostPosted: Tue Jul 03, 2007 1:55 pm    Post subject:
Reply with quote

Velkumar,
You can try passing the parameters like "28|48|58|68|78" if the individual parameters are not of fixed length or "2848586878" and then read the parameter as character string and breaking into individual number each 2 chars in length.
Hope this helps
Nimesh
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jul 03, 2007 7:06 pm    Post subject:
Reply with quote

Hello,

Do you want to pass the values of the array and the index into the array into the program? If you are passing the array into the program as a parm what does this "pass parm parameter as 1" mean?

I am confused as to what your requirement is. I'm also not sure how adding "|" between your array values might help. . .

If you describe the process more clearly, we may be able to offer suggestions.

When your process does what you want, what will it do? A description of that may help.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm
No new posts Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts JTS parameter Shashank Chaubey JCL & VSAM 2 Thu Jul 13, 2017 4:15 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us