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
 

 

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: 4649
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: 4649
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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