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
 
Populating Symbolic Parameters From a File

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

New User


Joined: 01 Dec 2005
Posts: 33
Location: Prague

PostPosted: Wed Apr 19, 2006 4:16 am    Post subject: Populating Symbolic Parameters From a File
Reply with quote

Hi,

I have a simple requirement for creating a job which will -

- Read a sequential file,
- Extract a particular value from the 3rd record.
- Assign that value to a symbolic parameter which is used in a proc in next step.

I know how to code first two steps, but am not quite sure about third. Is there any way to assign a value to symbolic parameter used in catalogued procedure by reading a sequential file.

I tried referring manuals but could see only two way - SET and assigning in EXEC stmt for assigning values to symbolic parameters. So I am not very optimistic that my problem will have a solution, but you never know, there are many experts in this forum.

Any sort of help will be appreciated, Thanks in advance.

Vinod Chawda
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Wed Apr 19, 2006 5:00 am    Post subject: Re: Populating Symbolic Parameters From a File
Reply with quote

Quote:

Is there any way to assign a value to symbolic parameter used in catalogued procedure by reading a sequential file?


Not within the same job. Any symbolics must be resolved by the job BEFORE the job can be submitted for execution.

You'll have to pass the symbolic value to a subsequent job, or pass it by some other means.
Back to top
View user's profile Send private message
Vinodc

New User


Joined: 01 Dec 2005
Posts: 33
Location: Prague

PostPosted: Wed Apr 19, 2006 1:26 pm    Post subject: Re: Populating Symbolic Parameters From a File
Reply with quote

Quote:
Not within the same job. Any symbolics must be resolved by the job BEFORE the job can be submitted for execution.

You'll have to pass the symbolic value to a subsequent job, or pass it by some other means.


Hi SuperK,

I can create a new job to add third step to it and make it successor of the first, so no issues in it. Can you please explain me how to pass this value to the new job?

Thank you so much.

Vinod
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Wed Apr 19, 2006 3:39 pm    Post subject: Re: Populating Symbolic Parameters From a File
Reply with quote

Use a combination of the INCLUDE and SET statements.
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 COB2 file processing rizwanaccy COBOL Programming 8 Tue Jan 02, 2018 1:00 pm
No new posts KSDS and Index file in cobol deepak14450 COBOL Programming 9 Fri Dec 22, 2017 9:36 am
No new posts Preserve order in Input File pshongal DFSORT/ICETOOL 13 Thu Dec 21, 2017 4:20 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am

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