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
 

 

Conversion of character string in CLIST control statement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
dbapratap

New User


Joined: 14 Jan 2012
Posts: 4
Location: United State of America

PostPosted: Sat Jan 14, 2012 6:48 am    Post subject: Conversion of character string in CLIST control statement
Reply with quote

Hi,
I am new to CLIST and working on a tool where i have the floowing control job for the penal i.e.

PROC 0
ISPEXEC VGET (OPT2) PROFILE
SUBMIT * END(NN)
//ABCD1200 JOB(00000000TS,W777),'CPBD1200',NOTIFY=&SYSUID,TIME=(0,5),
// REGION=0M,MSGCLASS=H
//*
//PROCLIB JCLLIB ORDER=(ABC.PROC.PROCLIB)
//*
//ABCD1200 EXEC ABCD1200,
// SOUTP=*,
// SOUTH=*
// PARM.STEP010='/unixsy01 /ABC/DE/efg/scripts/ph1.sh 1000'
//STEP005.IN DD DSN=ABC000.DATA1.T01
//STEP005.SYSIN DD DSN=ABC000.DATA1.PARMLIB(ABCFCHK2)
//STEP010.NETRC DD DSN=ABC000.DATA1.PARMLIB(ABCFTP)
//*
NN
ISPEXEC REMPOP
EXEC 'ABC000.DATA1.TEST(XYZ01)'
END

My problem is that when i submit job from the penal all the character are used in the job are converted into CAPS. But i need PARM.STEP010='/unixsy01 /ABC/DE/efg/scripts/ph1.sh 1000' as is, because the unix script written in this manner and if this changed to CAPS, it wont communicate to UNIX server.

I tried with
1.CAPS/ASIS/NOCAPS operand on the CONTROL statement
2.&SYSASIS control variable, or the &SYSLC and &SYSCAPS built-in functions

but i am not exactly find where i am really missing.

Let me know if you people need any information from my end.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Sat Jan 14, 2012 8:59 am    Post subject: Reply to: Conversion of character string in CLIST control st
Reply with quote

The TSO SUBMIT command converts all of the data to upper-case. Always has, probably always will. I can't understand why you're not already aware of that fact, since it's clearly documented here. Anyway, you'll need to use some other method to submit your JCL if you want to keep the lower-case text intact.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1219
Location: Israel

PostPosted: Sun Jan 15, 2012 8:05 pm    Post subject: Reply to: Conversion of character string in CLIST control st
Reply with quote

You could get more help if you were learning REXX instead of CLIST.

Can you show us in the procedure how the PARM parameter is used ?

btw,
REMPOP have a meaning only if there is an ADDPOP before, otherwise it is useless.
The VGET has a meaning only if you actually use the value received...
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Tue Jan 17, 2012 12:07 am    Post subject: Reply to: Conversion of character string in CLIST control st
Reply with quote

Quote:
you'll need to use some other method to submit your JCL


Write the JCL to a dataset and then SUBMIT the dataset.
Back to top
View user's profile Send private message
dbapratap

New User


Joined: 14 Jan 2012
Posts: 4
Location: United State of America

PostPosted: Tue Jan 17, 2012 12:09 am    Post subject: Reply to: Conversion of character string in CLIST control st
Reply with quote

Hi Kevin,
can you please suggest me some other method for submitting the job.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Tue Jan 17, 2012 12:13 am    Post subject: Re: Reply to: Conversion of character string in CLIST contro
Reply with quote

superk wrote:
The TSO SUBMIT command converts all of the data to upper-case. Always has, probably always will.

Perhaps it is due to some locally-written exit, but that seems not to be the case here.
Back to top
View user's profile Send private message
dbapratap

New User


Joined: 14 Jan 2012
Posts: 4
Location: United State of America

PostPosted: Tue Jan 17, 2012 3:18 am    Post subject: Reply to: Conversion of character string in CLIST control st
Reply with quote

Hi Marso,
Here is the proc:

//ABCD1100 PROC SOUTH=H, SYSOUT CLASS H (SYSUDUMP)
// SOUTP=P SYSOUT CLASS P (STAGING)
//*
//STEP005 EXEC PGM=IDCAMS
//IN DD DSN=ABC.ABCD&JOBNUM1..T1,
// DISP=SHR
//SYSOUT DD SYSOUT=&SOUTP
//SYSPRINT DD SYSOUT=&SOUTP
//SYSIN DD DSN=ANC.PROD.PARMLIB(ABCFCHK2), <<check if file
// DISP=SHR is empty
//*
// IF (STEP005.RC EQ 0) THEN
//STEP010 EXEC PGM=REXEC,
// PARM='/unixsp01 /anc/scripts/ph1.sh &JOBNUM1'
//*
//NETRC DD DSN=xxx.PROD.FTP.PARMLIB(ABCFTPP1),DISP=SHR
//*
//SYSPRINT DD SYSOUT=&SOUTP
//*


as you told :

1.REMPOP have a meaning only if there is an ADDPOP before, otherwise it is useless.
Yes i am using diff POP up penals for running different jobs.
2.The VGET has a meaning only if you actually use the value received.
I need to get the profile of the another penal, so i am using VGET.


Let me know if you have anything there in your mind,your suggestion is welcome.
Back to top
View user's profile Send private message
dbapratap

New User


Joined: 14 Jan 2012
Posts: 4
Location: United State of America

PostPosted: Fri Jan 20, 2012 5:55 am    Post subject: Reply to: Conversion of character string in CLIST control st
Reply with quote

I tried with submitting the job in different method, where one jcl calling another jcl i.e.

//STEP010 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DISP=SHR,DSN=CI111.xx.T3er(CABC1111)
//SYSUT2 DD SYSOUT=*
//SYSIN DD DUMMY
//*

But my 2nd jcl which is having path to UNIX server, is not able to connect.

Any suggestion?
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Fri Jan 20, 2012 7:40 pm    Post subject: Reply to: Conversion of character string in CLIST control st
Reply with quote

Quote:
is not able to connect.


You did not provide enough details.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1219
Location: Israel

PostPosted: Fri Jan 20, 2012 8:53 pm    Post subject:
Reply with quote

Can you modify the REXEC program so it gets the parameter from a file (instead of getting it from PARM=) ?
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts Conversion of a VB file to FB. isssal DFSORT/ICETOOL 1 Mon Oct 31, 2016 10:23 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm


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