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
 

 

Can I write symbolic parameter in sortout file

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

New User


Joined: 06 Mar 2009
Posts: 8
Location: Pune

PostPosted: Wed Jun 30, 2010 3:17 pm    Post subject: Can I write symbolic parameter in sortout file
Reply with quote

Hi,

My requirement is to write symbolic parameter in sortout file. As

Code:
//STEP030  EXEC PGM=SORT                                           
//SYSOUT   DD SYSOUT=*                                             
//SORTIN   DD DSN=ZRP..C&YR.&MTH..C&CYCL.T&CTN..SV&PRCID,
//         DISP=SHR
//SORTOUT  DD DSN=ZRP..C&YR.&MTH..C&CYCL.T&CTN..SV&PRCID..SRTD1,
//     DISP=(,CATLG,DELETE),                                     
//     SPACE=(CYL,(50,50),RLSE)                             
//SYSIN    DD   *


????????

Here &YR = 10, &MTH = 06, &CYCL = 01 and & CTN = 01

means I want in output file. These parameter are not fixed (these are coming from another job).

10 06 01 01 --------(other data)
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Wed Jun 30, 2010 3:38 pm    Post subject: Reply to: Can I write symbolic parameter in sortout file
Reply with quote

You must use a program of your own design that accepts those symbolic variables through a PARM= statement and writes them out to a dataset in whatever manner you need.
Back to top
View user's profile Send private message
shivkumar

New User


Joined: 06 Mar 2009
Posts: 8
Location: Pune

PostPosted: Wed Jun 30, 2010 4:06 pm    Post subject:
Reply with quote

My requirement is thru JCL.

Especially thru SORT
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 990
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Jun 30, 2010 6:08 pm    Post subject:
Reply with quote

Your requirement is unclear.

Do you want the symbolics stored as contents of the file or do you want to use the symbolics in the name of the file - or both?

You don't specify the DCB information for either file or give any clue as to content.

Garry.
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: Wed Jun 30, 2010 8:12 pm    Post subject:
Reply with quote

Hello,

How are these parameters getting into "this" job from the other job?

You have a scrap of jcl that references some symbolics, but there is no info as to how these are presented to this run? Is this one step in a PROCedure? Something else?
Back to top
View user's profile Send private message
shivkumar

New User


Joined: 06 Mar 2009
Posts: 8
Location: Pune

PostPosted: Thu Jul 01, 2010 4:33 pm    Post subject: Reply to: Can I write symbolic parameter in sortout file
Reply with quote

Garry & Dick,

I want symbolic content to be in file. All these symbolic parameter will come from different job. So I don't have control on these.

This is a job; which will send symbolic parameter & triggered by another job. e.g.

JOB1 will take up &YR , &MTH, &CYCL and &CTN values and passes to JOB2. And JOB2 will have write step (pls check my first post).

My requirement is to column wise Print these Symbolic parameter into output file and other data.
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 990
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Thu Jul 01, 2010 5:18 pm    Post subject:
Reply with quote

I'm still confused. What are you trying to achieve?

Quote:
JOB1 will take up &YR , &MTH, &CYCL and &CTN values and passes to JOB2.
I don't understand this. How can a job send a symbolic parameter to another job?

How would you propose that a step in a submitted job would access its own JCL in order to see the parameters used?

Garry.
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: Thu Jul 01, 2010 7:06 pm    Post subject:
Reply with quote

Hello,

It is not yet clear what you want/need. I believe you know what you are looking for, but so far, we do not. . .

Why is there a need to put the "symbolic content" into a file? How will this file be used?

You need to take the time to completely explain what you have and precisely what needs to be done with it.

Quote:
My requirement is to column wise Print these Symbolic parameter into output file and other data.
This will be best explained with the "rules" and examples.
Back to top
View user's profile Send private message
shivkumar

New User


Joined: 06 Mar 2009
Posts: 8
Location: Pune

PostPosted: Tue Jul 13, 2010 3:47 pm    Post subject:
Reply with quote

Guys,

Sorry for lot of confusion for my post. Actually my requirement was to write a symbolic parameter content into file.

Example:

//STEP030 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=ZRP..C&YR.&MTH..C&CYCL.T&CTN..SV&PRCID,
// DISP=SHR
//SORTOUT DD DSN=ZRP..C&YR.&MTH..C&CYCL.T&CTN..SV&PRCID..SRTD1,
// DISP=(,CATLG,DELETE),
// SPACE=(CYL,(50,50),RLSE)
//SYSIN DD *

In above JCL ...I used input file as 'ZRP..C&YR.&MTH..C&CYCL.T&CTN..SV&PRCID'

At the time of execution, JCL will pick the symbolic parameter and read the input file as 'ZRP.C1007.C01T01.SVP020' .

My Requirement is to write ..1007 01 01 P020 in output file.
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Tue Jul 13, 2010 3:51 pm    Post subject: Reply to: Can I write symbolic parameter in sortout file
Reply with quote

I still stand by my original answer.
Back to top
View user's profile Send private message
Arun Raj

Moderator


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

PostPosted: Tue Jul 13, 2010 4:23 pm    Post subject:
Reply with quote

shivkumar wrote:
At the time of execution, JCL will pick the symbolic parameter and read the input file as 'ZRP.C1007.C01T01.SVP020' .
Are these symbolic values gonna be constant? If not, how does it get changed everytime when the job runs?

shivkumar wrote:
My Requirement is to write ..1007 01 01 P020 in output file.
Where and how this file is going to be used down the line?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Jul 13, 2010 4:58 pm    Post subject:
Reply with quote

shivkumar,

symbolic parameters are resolved by jes during initiation of job
but, symbolic parameters contained within a sysin, etc are not resolved.

As SuperK said, you need to write your own to do this.

suggest a google search on CLCCDSNS
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Mon Aug 16, 2010 10:55 pm    Post subject:
Reply with quote

could be a following REXX step to list matching files and pull the relevant bits from the list of dsnames returned into a file to pass on....
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 Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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