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
 
Copying the string from a PS file name

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Hari108
Currently Banned

New User


Joined: 29 Jun 2006
Posts: 5

PostPosted: Sat Apr 12, 2008 12:12 pm    Post subject: Copying the string from a PS file name
Reply with quote

Hi,

I have a requirement here...

I need to copy a string from the input file name and append it to the output file name.

e.g.
Input file: PAY.DT03042008093034.FILE
after processing the o/p shld be like this...

Output file: RESULT.DT03042008093034.FILE

I need to copy the time stamp from the input file name which is the middle qualifier in the file name.
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: Sat Apr 12, 2008 12:26 pm    Post subject:
Reply with quote

The filename is invalid for z/OS
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Apr 12, 2008 11:21 pm    Post subject:
Reply with quote

Hello,

Once you construct a valid (unix and windows style names are not valid) dataset name, how will it be specified in the input DD statement?

If the input file name might change from run to run, i'd suggest you put the process in a PROCedure and specify the variable part of the name in a symbolic parameter. The same symbolic parameter could be used in the output dataset name and the value would be automatically used both places (or even in subsequent steps of the jobstream).

To learn about valid dataset names and symbolic parameters, i'd suggest you look in the JCL manuals available via the "IBM Manuals" link at the top of the page. If you read something that is not clear to you post it here as well as your question about what is confusing.

Someone will be here.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

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