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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Writing value of a symbolic varaible present a JCL to a PS
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: 8593
Location: Back in jolly old England

PostPosted: Mon May 14, 2007 3:47 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon May 14, 2007 4:11 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Mon May 14, 2007 7:35 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts Record Not found in AlX but record re... mukun264 COBOL Programming 7 Fri Mar 24, 2017 9:28 am
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 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