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

how to provide the single quotes for job description


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
lakshmiharirao

New User


Joined: 30 Jun 2009
Posts: 5
Location: bangalore

PostPosted: Tue Aug 04, 2009 7:34 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Aug 04, 2009 7:38 pm
Reply with quote

Call me a sceptic, but why do you need a program to generate a jobcard.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Aug 04, 2009 7:44 pm
Reply with quote

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
View user's profile Send private message
lakshmiharirao

New User


Joined: 30 Jun 2009
Posts: 5
Location: bangalore

PostPosted: Tue Aug 04, 2009 7:52 pm
Reply with quote

thanks... It worked.I was trying to implement this to create an automated tool to create JCL to run jobs
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Aug 04, 2009 7:59 pm
Reply with quote

Surely not your own scheduling package icon_eek.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Aug 04, 2009 8:18 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Aug 05, 2009 11:09 am
Reply with quote

Still, at least this one's different, it isn't in REXX icon_lol.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Aug 05, 2009 4:40 pm
Reply with quote

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! icon_biggrin.gif
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 -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts Help in extracting data between doubl... DFSORT/ICETOOL 5
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Convert single row multi cols to sing... DFSORT/ICETOOL 6
No new posts Merge 2 lines based on Space from a S... DFSORT/ICETOOL 5
Search our Forums:

Back to Top