![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Another bash shell to perl conversion | freak | UNIX for Dummies Questions & Answers | 6 | 05-29-2008 02:04 PM |
| bash to perl conversion | thumper | Shell Programming and Scripting | 2 | 07-14-2006 04:36 PM |
| difference between AIX shell scripting and Unix shell scripting. | haroonec | Shell Programming and Scripting | 2 | 04-12-2006 09:12 AM |
| Perl conversion & perldoc question | thumper | Shell Programming and Scripting | 2 | 09-11-2005 10:24 PM |
| Conversion of bash parsing script to perl? | cstovall | Shell Programming and Scripting | 2 | 10-13-2004 11:33 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 appreciated! Thanks, Dave
|
|
||||
|
If you are talking about "Packing" the data which is what COMP-3 does in COBOL then yes you will have to write a COBOL program to do that. I don't know of anything in UNIX that will do that without using COBOL. Of course I am not a UNIX expert so I could be wrong. Good Luck!
|
|
||||
|
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 /home/rse0/xxgvlqr/ascii_to_packed.ksh[39]: 16#.4: bad number |
|
||||
|
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 script. Basically we want our summary record to look like this:
high values positions 1-5 # of records in the file positions 6-10 Totaling the records, I can handle. LOL. Just need to know if there is a way to "write" low values or hgih values within a shell script. Thanks. |
|
||||
|
Quote:
+000000000050408 or -000086214050408 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|