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: 7932
Location: Bellevue, IA

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: 7932
Location: Bellevue, IA

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: 7932
Location: Bellevue, IA

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 TWS EQQYCAIN - not sure how to get ap... mbenaud IBM Tools 0 Wed Dec 14, 2016 8:45 pm
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
No new posts Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm


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