Thankyou for the quick reply.
I tried in below way in taking the backup as suggested in one of the post in this forum and it worked fine.
The only issue i was facing is to get the DCB attributes of the file that is present in &&TEMP01 and pass it to OFILE.if i am testing for a single known file by giving proper DCB paremeters to OFILE, it is working fine. But my requirement is the PS file attributes keep on changing that is present in &&TEMP01.Sometimes it is FB,300LRECL, FB600LRECL,VB 450LRECL,VB670LRECL,etc.As suggested above, i cant keep the file name in a PDS member due to some security reasons.
//BUILDER EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=dataset with the name in it ,DISP=SHR
//SORTOUT DD DSN=&&TEMP001,DISP=(,PASS,DELETE),
// RECFM=FB,LRECL=80,
// SPACE=(CYL,(25,25),RLSE)
//SYSIN DD *
OPTION COPY
OUTFIL BUILD=(C' IDS(',1,44,1X,C') -',80:X)
/*
//*
//IDCAMS EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//OFILE DD DSN=FILE NAME, Disp=(new,catlg,delete),space=... , dcb=....
//SYSIN DD *
PARM MARGINS(1 80)
REPRO -
// DD DSN=&&TEMP001,DISP=SHR
// DD *
OFILE(OFILE)
/*
//
Attributes of name of PS file in a PS file
-
- Posts: 5
- Joined: Tue Nov 14, 2017 9:53 pm
- Skillset: cobol jcl vsam
- Referer: friend
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: Attributes of name of PS file in a PS file
You can't do it like you propose. And if your input really is like you say, then I see no way around a programmed solution. A simple REXX using dynalloc springs to mind.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
EZIOE004 Logical I/O error on file occurred reading VB file
by savitha_y » Mon Feb 15, 2021 7:54 pm » in CA-Easytrieve - 3
- 4965
-
by savitha_y
View the latest post
Wed Feb 17, 2021 5:02 am
-
-
-
File Handling 3 input files and 1 output file by using EZT
by pavan426 » Thu Sep 09, 2021 12:17 am » in CA-Easytrieve - 0
- 4428
-
by pavan426
View the latest post
Thu Sep 09, 2021 12:17 am
-
-
-
Need to check whether file is ESDS file or not by using REXX
by Devrana » Sat Oct 05, 2024 2:28 pm » in CLIST & REXX - 6
- 3231
-
by sergeyken
View the latest post
Tue Oct 08, 2024 5:25 pm
-
-
- 6
- 2512
-
by MFDEV
View the latest post
Fri Sep 11, 2020 9:04 am
-
-
.TXT file conversion to .CSV/.XLSX
by dangtran10 » Thu May 20, 2021 7:09 am » in DFSORT/ICETOOL/ICEGENER - 3
- 1936
-
by steve-myers
View the latest post
Fri May 21, 2021 10:57 pm
-