• Please help support our sponsors by considering their products and services.
    Our sponsors enable us to serve you with this high-speed Internet connection and fast webservers you are currently using at ADSM.ORG.
    They support this free flow of information and knowledge exchange service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions
  • Community Tip: Please Give Thanks to Those Sharing Their Knowledge.

    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.

  • Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)

    Click the link above to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This notice will disappear after you have made at least 3 posts.

Report Field getting Delimited

dicowins

ADSM.ORG Member
I created this script
'select cast((NODE_NAME) as char(20)) as "NODE",cast((REPORTING_MB) as char(20)) as "MB",cast((FILESPACE_NAME) as char(50)) as "FS",TYPE from OCCUPANCY where REPORTING_MB>0.00'

This is the Structure of OCCUPANCY
Fieldname Length
--------------------------------------------------- ---------------------
FILESPACE_ID 4
FILESPACE_NAME 1025
LOGICAL_MB 31
NODE_NAME 65
NUM_FILES 8
PHYSICAL_MB 31
REPORTING_MB 31
STGPOOL_NAME 31
TYPE 4


However when I run script
NODE MB FS TYPE
----------------- --------------------- ----------------------------------------------------------------------------------------------------- -----
N1IBNPRP01 29.37 /usr/local Bkup
RV_RVI_DATACENTE .02 \VMFULL-NUTHMirthPRD Bkup
FV_FH_DATACENTER .79 \VMFULL-NUTH-FOM05 Bkup
RV_RVI_DATACENTE .83 \VMFULL-VIRTUAL-SQL Bkup



RV_RVI_DATACENTE should be RV_RVI_DATACENTER !

Edited by marclant to fix font size to be readable.
 
Last edited by a moderator:

marclant

ADSM.ORG Moderator
The formatting comes out all wrong, it's hard to see what you mean. Although by counting the number of dashes, it looks like the char(20) and char(50) didn't work.

In the future when pasting outputs, select </> Code from this drop down:
1579095439566.png

Paste your text in the pop-up and this will keep the text formatting as you were seeing it and not wrap into multiple lines.
 

Advertise at ADSM.ORG

If you are reading this, so are your potential customer. Advertise at ADSM.ORG right now.

UpCloud high performance VPS at $5/month

Get started with $25 in credits on Cloud Servers. You must use link below to receive the credit. Use the promo to get upto 5 month of FREE Linux VPS.

The Spectrum Protect TLA (Three-Letter Acronym): ISP or something else?

  • Every product needs a TLA, Let's call it ISP (IBM Spectrum Protect).

    Votes: 18 18.4%
  • Keep using TSM for Spectrum Protect.

    Votes: 60 61.2%
  • Let's be formal and just say Spectrum Protect

    Votes: 12 12.2%
  • Other (please comement)

    Votes: 8 8.2%

Forum statistics

Threads
31,716
Messages
135,196
Members
21,721
Latest member
abucci63
Top