You don't need to create a dictionary item if it's a one-off ...

For a one-off, just put (iirc the syntax correctly)

EVAL "FIELD(@ID,"*",1)"

as the field name in the list command. You can modify the way it
displays with things like the FMT option, there are more ...

Mind you, there's a good chance this I-type already exists in the
dictionary, if the dictionary was set up properly.

Cheers,
Wol

On 26/03/13 14:48, George Gallen wrote:
> At least for UV (not sure about Unidata).
> 
> You would need to do two things.
> 
> 1. create a DICT item that only displays the first part of the @ID up to the *
>    ED DICT filename NEWID
>    I
>    001: I
>    002: FIELD(@ID,"*",1)
>    003:
>    004: NEWID
>    005: 10L  (max width you want your column to be)
>    006: S
> 
> 2. create a new default paragraph field listing DICT item (called @)
>    ED DICT filename @
>    001: PH
>    002: NEWID BY NEWID   (Anything you would want after the SELECT 
> FILENAME...)
> 
> That's it, now when you LIST filename, it will use the new paragraph entry.
> 
> You can make any combination of paragraph listing entries you want, say you 
> called
> It "NEWLIST2" - you would use it like:  LIST filename NEWLIST2
> 
> George
> 
> -----Original Message-----
> From: u2-users-boun...@listserver.u2ug.org 
> [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Sathya
> Sent: Tuesday, March 26, 2013 10:32 AM
> To: u2-users@listserver.u2ug.org
> Subject: [U2] List..
> 
> Hi all,..
> 
> I have a small issue in listing a file. When I use LIST FILENAME, the data 
> comes like 
> 123456*001
> 123456*001. 
> 
> I would like to display the data as 
> 123456
> 123456
> 
> Can someone please help me in doing this?
> 
> TIA, 
> Sathya V. 
> 
> 
> _______________________________________________
> U2-Users mailing list
> U2-Users@listserver.u2ug.org
> http://listserver.u2ug.org/mailman/listinfo/u2-users
> _______________________________________________
> U2-Users mailing list
> U2-Users@listserver.u2ug.org
> http://listserver.u2ug.org/mailman/listinfo/u2-users
> 

_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to