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
 

 

how to provide the single quotes for job description

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: how to provide the single quotes for job description
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: 8593
Location: Back in jolly old England

PostPosted: Tue Aug 04, 2009 7:38 pm    Post subject:
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Tue Aug 04, 2009 7:44 pm    Post subject:
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    Post subject: Reply to: how to provide the single quotes for job descripti
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: 8593
Location: Back in jolly old England

PostPosted: Tue Aug 04, 2009 7:59 pm    Post subject:
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Tue Aug 04, 2009 8:18 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Aug 05, 2009 11:09 am    Post subject:
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Wed Aug 05, 2009 4:40 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Translating Quotes Khadhar Basha CLIST & REXX 6 Tue May 09, 2017 11:52 am
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts Splitting of single report to seperat... abdulrafi TSO/ISPF 7 Mon Mar 27, 2017 3:59 pm


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