Computing.Net > Forums > OpenVMS > dcl script help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

dcl script help

Reply to Message Icon

Name: rem
Date: November 28, 2004 at 15:16:00 Pacific
OS: win xp
CPU/Ram: P4 2.8c HT 512MB
Comment:

I have to write a little DCL script:
It can sort the line of a file, which is determined by parameter. If the two lines in the files is similar, the script must send an individual error message.
If the parameter is "mail", the script must send it-self to a given e-mail adress.
Thx for the help!

reM



Sponsored Link
Ads by Google

Response Number 1
Name: Bob Gezelter
Date: November 28, 2004 at 17:13:48 Pacific
Reply:

rem,

First, I would take a look at the SORT utility description, both online in the help text and in the documentation set (a copy of the documentation set can be found on the HP www site at http://www.hp.com/go/openvms.

If you can be more specific, it easier to be more specific in assisting you.

- Bob Gezelter, http://www.rlgsc.com
The OpenVMS Consultant, http://www.OpenVMS.org


0

Response Number 2
Name: rem
Date: November 29, 2004 at 06:55:15 Pacific
Reply:

Thx Bob Gezelter for your help!

This is description of the script that i have to write. No more information, specification.

The SORT command is good, i can use it.
How can i compare two or more lines in the same file?
How can i write the MAIL command in a DCL script?

reM


0

Response Number 3
Name: rem
Date: November 29, 2004 at 11:43:01 Pacific
Reply:

How can i list lines of a file in reverse (from last line to first line) to standard output?

reM


0

Response Number 4
Name: cycy
Date: November 30, 2004 at 02:17:55 Pacific
Reply:

reM, ELTE? :)


0

Response Number 5
Name: Hakan Andersson (by HakAnd)
Date: November 30, 2004 at 10:49:40 Pacific
Reply:

reM,

There are no easy answer to your questions.

To compair two strings.

$ string_1 = "ABC"
$ string_2 = "DEF"
$ if string_1 .eqs. string_2 then .....

to list a file from bottom to top, you need a script.......

$ open/read file your_file.txt
$ row=1
$10:
$ read/end=eof file str'row'
$ row = row + 1
$ goto 10
$eof:
$ close file
$20:
$ row = row - 1
$ write sys$output str'row'
$ if row .gt. 1 then goto 20
$ exit


0

Related Posts

See More



Response Number 6
Name: rem
Date: November 30, 2004 at 12:31:16 Pacific
Reply:

thx Hakan

i have alredy solved the problem :D
(my script is almost the same like your)

thx again
:)

reM


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to OpenVMS Forum Home


Sponsored links

Ads by Google


Results for: dcl script help

DCL script for F$GETQUI needed www.computing.net/answers/openvms/dcl-script-for-fgetqui-needed/310.html

DCL script to check for empty file www.computing.net/answers/openvms/dcl-script-to-check-for-empty-file/296.html

DCL script with / as parameter www.computing.net/answers/openvms/dcl-script-with-as-parameter/443.html