Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove SENDCOM from make_ntc_bull #62

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 15 additions & 23 deletions ush/make_ntc_bull.pl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#------------------------------------------------------

if ($ENV{job}) { $job=$ENV{job}; }
if ($ENV{SENDCOM}) { $SENDCOM=$ENV{SENDCOM}; }
if ($ENV{SENDDBN}) { $SENDDBN=$ENV{SENDDBN}; }
$NArgs = @ARGV;

Expand Down Expand Up @@ -112,14 +111,12 @@ sub make_tocbull {
$ByteCount = length($cho2);
print " length is $ByteCount ";
$BulletinFlagFieldSep = sprintf( "****%10.10d****", $ByteCount);
if ($SENDCOM eq "YES") {
if ($ByteCount > 50 ) {
print OUTFILE "$BulletinFlagFieldSep\n";
print OUTFILE $cho2;
}
else {
$ix = 1;
}
if ($ByteCount > 50 ) {
print OUTFILE "$BulletinFlagFieldSep\n";
print OUTFILE $cho2;
}
else {
$ix = 1;
}
}
close OUTFILE;
Expand Down Expand Up @@ -169,14 +166,12 @@ sub make_tocplot {
$ByteCount = length($cho2);
print " length is $ByteCount ";
$BulletinFlagFieldSep = sprintf( "****%10.10d****", $ByteCount);
if ($SENDCOM eq "YES") {
if ($ByteCount > 50 ) {
print OUTFILE "$BulletinFlagFieldSep\n";
print OUTFILE $cho2;
}
else {
$ix = 1;
}
if ($ByteCount > 50 ) {
print OUTFILE "$BulletinFlagFieldSep\n";
print OUTFILE $cho2;
}
else {
$ix = 1;
}
}
close OUTFILE;
Expand Down Expand Up @@ -221,12 +216,9 @@ sub make_tocredb {
$ByteCount = length($cho);
print " length is $ByteCount ";
$BulletinFlagFieldSep = sprintf( "****%10.10d****", $ByteCount);
if ($SENDCOM eq "YES") {
if ($ByteCount > 50 ) {
print OUTFILE "$BulletinFlagFieldSep\n";
print OUTFILE $cho;

}
if ($ByteCount > 50 ) {
print OUTFILE "$BulletinFlagFieldSep\n";
print OUTFILE $cho;
}
close OUTFILE;
if ($SENDDBN eq "YES" ) {
Expand Down
Loading