Is there a way to read the FILEDATA output generated using the FILENAME attribute into a CSV format file.
For example: to produce a CODEINFO report where TARGET is reported for the entire pack in an effort to identify objects not LEVEL6
I was able to do this in PDIR but wanted to know if this is available in FILEDATA
Thanks
Val
On 5/24/2021 10:50 PM, Val wrote:Rather than use FILEDATA, use *SYSTEM/PDIR. Same type of info, and will output to CSV
Is there a way to read the FILEDATA output generated using the FILENAME attribute into a CSV format file.
For example: to produce a CODEINFO report where TARGET is reported for the entire pack in an effort to identify objects not LEVEL6
I was able to do this in PDIR but wanted to know if this is available in FILEDATA
ThanksAs far as I can tell, FILEDATA only outputs line-image data in "report" format. You can output the report to a disk file, but the records will
Val
look like the printed report.
Paul
On Tuesday, May 25, 2021 at 10:16:21 AM UTC-4, Paul Kimpel wrote:
On 5/24/2021 10:50 PM, Val wrote:
Is there a way to read the FILEDATA output generated using the FILENAME attribute into a CSV format file.
For example: to produce a CODEINFO report where TARGET is reported for the entire pack in an effort to identify objects not LEVEL6
I was able to do this in PDIR but wanted to know if this is available in FILEDATA
ThanksAs far as I can tell, FILEDATA only outputs line-image data in "report" format. You can output the report to a disk file, but the records will look like the printed report.
Val
PaulRather than use FILEDATA, use *SYSTEM/PDIR. Same type of info, and will output to CSV
El martes, 25 de mayo de 2021 a las 11:29:33 UTC-6, ramseyhere escribió:
On Tuesday, May 25, 2021 at 10:16:21 AM UTC-4, Paul Kimpel wrote:
On 5/24/2021 10:50 PM, Val wrote:
Is there a way to read the FILEDATA output generated using the FILENAME attribute into a CSV format file.
For example: to produce a CODEINFO report where TARGET is reported for the entire pack in an effort to identify objects not LEVEL6
I was able to do this in PDIR but wanted to know if this is available in FILEDATA
ThanksAs far as I can tell, FILEDATA only outputs line-image data in "report" format. You can output the report to a disk file, but the records will look like the printed report.
Val
This is the job I use to get similar info .... User can be "*", "(=)" or any specific usercode between parenthesis ...PaulRather than use FILEDATA, use *SYSTEM/PDIR. Same type of info, and will output to CSV
?BEGIN JOB WFL/PDIR/CODEVERSION (
STRING USR OPTIONAL DEFAULT = "(=)");
%FAMILY DISK = DISK ONLY;
STRING S1, S2, MYPK;
SUBROUTINE CODEINFO (STRING PK);
BEGIN
IF USR = "*" THEN
S2 := "SYSTEM"
ELSE
S2 := "ALLUSR";
S1 := USR & "= ON " & PK & " SHOW NAME,FILEKIND,CODEV,EXEC " &
"SELECT FILEKIND = =CODE= SORT +CODEV" &
":TABBED """ & PK & "_" & S2 & "_CODEV.TXT""" ON MYPK;
%DISPLAY (S1);
RUN *SYSTEM/PDIR (S1);
END;
MYPK := "DISK";
CODEINFO ("SPARE");
?END JOB.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 307 |
Nodes: | 16 (2 / 14) |
Uptime: | 118:10:01 |
Calls: | 6,854 |
Files: | 12,355 |
Messages: | 5,416,873 |