MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SUBSTRING

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Mon Aug 11, 2003 5:02 am    Post subject: SUBSTRING Reply with quote

Is there any command in JCL to get subsring of a variable?
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Mon Aug 11, 2003 5:46 am    Post subject: Reply with quote

Dibakar,

can you please give us details as to what you meant? is the variable you looking for in a file?

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Mon Aug 11, 2003 5:53 am    Post subject: Reply with quote

Kolusu,

No these are variables defined in JCL. Say I want to get four characters from my userid (&SYSUID) starting from 4th position. If my id is TSO1234, I want to extract 1234 and pass this in PARM field.

Diba.
Back to top
View user's profile Send private message Send e-mail
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Mon Aug 11, 2003 7:11 am    Post subject: Reply with quote

There is no SUBSTRING feature in JCL. However, you can pass the variable to REXX exec, and return the desired SUBSTRING.

O.
________
Honda NS500 specifications


Last edited by ofer71 on Sat Feb 05, 2011 11:02 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Mon Aug 11, 2003 7:18 am    Post subject: Reply with quote

Thanks!

Diba.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group