IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Writing value of a symbolic varaible present a JCL to a PS


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vikash singh

New User


Joined: 12 May 2007
Posts: 15
Location: noida

PostPosted: Mon May 14, 2007 3:00 pm
Reply with quote

I want to write the value of a symbolic variable present in a JCL to a PS. Please suggest.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon May 14, 2007 3:47 pm
Reply with quote

Can you elaborate a little on this please.

And also the reasoning behind this request.

I am cycnical, and believe that this question has a HOMEWORK feel to it.
Back to top
View user's profile Send private message
vikash singh

New User


Joined: 12 May 2007
Posts: 15
Location: noida

PostPosted: Mon May 14, 2007 4:05 pm
Reply with quote

I have a JCL which has some symbolic paramters. This JCL calls a PROC. I need the value of the symbolic paramter in the PROC. What i want to do is to move the value of the symbolic paramter present in the JCL to a PS. This PS will be used in the PROC.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon May 14, 2007 4:11 pm
Reply with quote

Why not just take the symbolics present in the JCL and use them in the PROC.
Back to top
View user's profile Send private message
vikash singh

New User


Joined: 12 May 2007
Posts: 15
Location: noida

PostPosted: Mon May 14, 2007 5:06 pm
Reply with quote

My problem is:
I have a date paramter which is being used in the JCL (as a symbolic variable). This JCL calls a PROC. The PROC has a COBOL module in a step. This step needs the date paramter.

How i can get the date value in COBOL step?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon May 14, 2007 7:35 pm
Reply with quote

Hello,

Just use the symbolic parameter on the EXEC for the COBOL pgm.
Code:
2 //THING1   PROC                                               
  //BR14     EXEC PGM=IEFBR14,PARM='&INFO'                       
  //DD1      DD DSN=DR.RDS.XX1,DISP=(MOD,DELETE),UNIT=SYSDA,     
  //            SPACE=(TRK,0)                                   
  //         PEND                                               
3 //RUN1     EXEC THING1,INFO='77889900'                         
4 ++THING1   PROC                                               
5 ++BR14     EXEC PGM=IEFBR14,PARM='&INFO'                       
  IEFC653I SUBSTITUTION JCL - PGM=IEFBR14,PARM='77889900'       
6 ++DD1      DD DSN=DR.RDS.XX1,DISP=(MOD,DELETE),UNIT=SYSDA,     
  ++            SPACE=(TRK,0)                                   


Notice that the &INFO symbolic parm was replaced by the value on the EXEC statement.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Two input files & writing counter... DFSORT/ICETOOL 12
No new posts AI writing DFSORT, REXX codes.. All Other Mainframe Topics 3
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts writing into VSAM indexed tabl in PL1... PL/I & Assembler 8
No new posts Concurrent writing records to VSAM fr... JCL & VSAM 9
Search our Forums:

Back to Top