View previous topic :: View next topic
|
Author |
Message |
LOGESHWARAN K
New User
Joined: 02 Mar 2017 Posts: 2 Location: India
|
|
|
|
Hi,
I want to copy all the panvalet members to pds. I wrote a JCL but I am facing this problem.
Consider 2 members having member name as ABC12345 & ABC12345Z.. In this case second member is overwritten by first member while copying since the PDS member name can be maximum 8 characters.
Is there any way to solve this problem ?
There are more members having name as first 8 characters same. So I cant rename every member manually. I want output like ABC12345 & ABC1234(Any special character).
Thanks,
Logeshwaran K |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
The first step is to define a process where 10-character member names are converted to 8-character member names, including what happens if multiple long names would convert to the same short name. |
|
Back to top |
|
|
LOGESHWARAN K
New User
Joined: 02 Mar 2017 Posts: 2 Location: India
|
|
|
|
Hi,
Thanks for your reply...
I want JCL to rename the 10-character member name to 8-character member name while copying... I should not rename the 10-character member name in Panvalet.
Thanks & Regards,
Logeshwaran K |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
The first step is to define a process where 10-character member names are converted to 8-character member names, including what happens if multiple long names would convert to the same short name. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Here is some skeleton JCL to give you an idea...
Code: |
//jobname JOB jobcard details...
//STEP EXEC PGM= your program to do the conversion
//INPUT DD DSN=your input data set,....
//OUTPUT DD DSN=your output data set,...
// any other DDnames required by your program
// |
Of course, INPUT and OUTPUT DDnames should be replaced by whatever your program requires. |
|
Back to top |
|
|
|