Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8166
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: 8166
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: 8166
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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts Translating Quotes Khadhar Basha CLIST & REXX 6 Tue May 09, 2017 11:52 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us