TSM query creating extra line feeds randomly
All,
I am currently writing some scripts that output data from TSM and input them into a database table on a webserver for a monitoring suite. So far everything has been going well, until I came across this anomaly.
To simplify the issue, the problem can be replicated as below.
If I run the following I get a file created that is TAB delimited of the SELECT statement.
dsmadmc -id=XXXX-pa=XXXX-dataonly=y -displaymode=table -tabdelimited ' select VOLUME_NAME,NODE_NAME,FILESPACE_NAME,FILE_NAME,FILE_SIZE,SEGMENT,FILESPACE_ID,COPIED,DAMAGED from CONTENTS' >testfile
The strange thing happens on a few lines during the output. Instead of having just a TAB after the file name, a LINEFEED is inserted before the TAB. Below is an example where the issue is with file3.
A00001 hostname /gpfs/filesystem01 /dir1/dir2/file1 21770 1/1 1 No No
A00002 hostname /gpfs/filesystem01 /dir1/dir2/file2 6332 1/1 1 No No
A00003 hostname /gpfs/filesystem01 /dir1/dir2/file3
472 1/1 1 No No
A00004 hostname /gpfs/filesystem01 /dir1/dir2/log/file4 10038 1/1 1 No No
A00005 hostname /gpfs/filesystem01 /dir1/dir2/log/file5 6332 1/1 1 No No
The problem does not occur after a certain amount of lines or characters, but occurs at the same place every time the script is run.
Has anyone seen this before or know of an issue?
All,
I am currently writing some scripts that output data from TSM and input them into a database table on a webserver for a monitoring suite. So far everything has been going well, until I came across this anomaly.
To simplify the issue, the problem can be replicated as below.
If I run the following I get a file created that is TAB delimited of the SELECT statement.
dsmadmc -id=XXXX-pa=XXXX-dataonly=y -displaymode=table -tabdelimited ' select VOLUME_NAME,NODE_NAME,FILESPACE_NAME,FILE_NAME,FILE_SIZE,SEGMENT,FILESPACE_ID,COPIED,DAMAGED from CONTENTS' >testfile
The strange thing happens on a few lines during the output. Instead of having just a TAB after the file name, a LINEFEED is inserted before the TAB. Below is an example where the issue is with file3.
A00001 hostname /gpfs/filesystem01 /dir1/dir2/file1 21770 1/1 1 No No
A00002 hostname /gpfs/filesystem01 /dir1/dir2/file2 6332 1/1 1 No No
A00003 hostname /gpfs/filesystem01 /dir1/dir2/file3
472 1/1 1 No No
A00004 hostname /gpfs/filesystem01 /dir1/dir2/log/file4 10038 1/1 1 No No
A00005 hostname /gpfs/filesystem01 /dir1/dir2/log/file5 6332 1/1 1 No No
The problem does not occur after a certain amount of lines or characters, but occurs at the same place every time the script is run.
Has anyone seen this before or know of an issue?
Last edited: