Search Results

Search: Posts Made By: dfran1972
11,901
Posted By dfran1972
I'm probably just being stupid, but what am I...
I'm probably just being stupid, but what am I doing wrong? Here is the code and the result I am getting out. Trying to pass in Julian Date of 112 to have it return 20050422...

#! /usr/bin/ksh

#...
11,901
Posted By dfran1972
Sorry, actually need to TAKE a 3 digit julian and...
Sorry, actually need to TAKE a 3 digit julian and convert it to YYYYMMDD format. Original post was stated incorrectly.
11,901
Posted By dfran1972
Converting YYYYMMDD to Julian
I am writing some PERL code (and I realize this is a UNIX forum), but was wondering if anyone has a quick routine (PERL or shell scripting) to take a date in YYYYMMDD format and return the 3 digit...
17,542
Posted By dfran1972
Oops, sorry about that. Was so concerned about...
Oops, sorry about that. Was so concerned about the packing piece of the puzzle that I overlooked the negative handling. One thing in your script has me confused. I did a man on "od" and there is no...
17,542
Posted By dfran1972
Per, need some more help. Noting your quote...
Per, need some more help. Noting your quote above, we have a field that is signed (see below) that I need to put into comp-3 format. Any ideas? I know you said the decimal is implied, but what about...
17,542
Posted By dfran1972
Per, thanks very very much for your help. I think...
Per, thanks very very much for your help. I think this will save me from having to write a COBOL routine. One more question: do you know of a way to put out "low-values" or "high-values" through a...
17,542
Posted By dfran1972
Thanks Per. I'm assuming this doesn't work for...
Thanks Per. I'm assuming this doesn't work for decimal data? Only true integers?

/home/rse0/xxgvlqr> /home/rse0/xxgvlqr/ascii_to_packed.ksh 123.45
packing 3 5 C 8#134 0134...
17,542
Posted By dfran1972
Comp-3 conversion possible with Shell Scripting or PERL?
I guess the subject asks it all, but I am wondering (before I go and code a COBOL module) if conversion of regular ASCII data to COMP-3 is possible on a UNIX environment (AIX 5.1)? Any help would be...
2,448
Posted By dfran1972
Thanks for the replies everyone. I actually just...
Thanks for the replies everyone. I actually just used the SED example (first reply) and that worked like a charm. We do a lot of PERL scripting for my application, so reply 2 would have been fine as...
2,448
Posted By dfran1972
Shell Coding question for any experts out there
Given this one long stream of data (all one line):

<TransactionDetail><TransactionHeader><ErrorLogging>YES</ErrorLogging><HistoryLogging>YES</HistoryLogging><ErrorDetection>NO</ErrorD...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 01:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy