View previous topic :: View next topic
|
Author |
Message |
lakshmiharirao
New User
Joined: 30 Jun 2009 Posts: 5 Location: bangalore
|
|
|
|
hi
I am writing the pli program to write the jobcard to output file
I have 3 output files and based on the the output file i need to write the jobdescription in the jobcard for each file.
when i pass the job desc as variable, I am not able to get it within single quotes...
Could any one of u help me to solve this...
type 1:
in pli :
var= filecreation
' JOB (0565,0000),''||var||'','
output :
JOB (0565,0000),'||var||',
CLASS=D,
type 2:
in pli :
' JOB (0565,0000),'||var||','
output :
JOB (0565,0000),filecreation,
CLASS=D, |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Call me a sceptic, but why do you need a program to generate a jobcard. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
I echo expat -- why?
But your code doesn't have enough tic marks. It should be
Code: |
' JOB (0565,0000),'''||var||''',' |
Double tic marks are converted to single, and you need an ending tic mark to complete the string before the concatenation symbol, and one after the second concatenation symbol to start the string followed by double tic marks to become a single tic mark. |
|
Back to top |
|
|
lakshmiharirao
New User
Joined: 30 Jun 2009 Posts: 5 Location: bangalore
|
|
|
|
thanks... It worked.I was trying to implement this to create an automated tool to create JCL to run jobs |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Surely not your own scheduling package |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
create an automated tool to create JCL to run jobs |
OMG -- how many places on this forum have the advice not to do this? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Still, at least this one's different, it isn't in REXX |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
Still, at least this one's different, it isn't in REXX |
Yeah, we didn't use concrete to build our airplane, we used bricks! |
|
Back to top |
|
|
|