Mainframe SAS JCL to Korn Shell script conversion


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Mainframe SAS JCL to Korn Shell script conversion
# 1  
Old 09-19-2017
Mainframe SAS JCL to Korn Shell script conversion

Hi All,

Please help me to the conversion of Mainframe SAS JCL to korn Unix script. Please share the example from SAS JCL to Korn Unix Script.
It be really helpful. Please share the online source also so I can look into it.

Thanks,
Abhishek
# 2  
Old 09-19-2017
Hi.

There is a web page that advertises mainframe to *nix conversions. Some of the codes are free, some are not: Vancouver Utilities for Unix, Linux,& Windows

I have tried some of the free codes.

I don't know how SAS JCL differs from plain JCL, but perhaps you can find something suitable there.

Good luck ... cheers, drl
# 3  
Old 09-25-2017
It might be useful to us (and therefore garner more useful responses) if you shared what you are trying to convert. If the logic might not be clear, then a textual description of the process required might help us to understand and offer suggestions.

It would really help you you show what you have tried so far and we can highlight any issues. That way you will learn and hopefully be able to support your business in the future.




Kind regards,
Robin
# 4  
Old 09-25-2017
As with most times we are asked for a "conversion", there isn't one... You can't just hit a button and translate from one computer language to another. It'll have to be rewritten.
# 5  
Old 09-25-2017
Quote:
Originally Posted by Corona688
As with most times we are asked for a "conversion", there isn't one... You can't just hit a button and translate from one computer language to another. It'll have to be rewritten.
True - and even more so, because JCL (Job Control Language) is not a programming language in the sense of C, ksh or similar: it is a specialised language to describe how jobs (=programs written in other languages) should be set up in their respective environment to be run on a mainframe running VM or some MVS-descendant (OS/390, z/OS, ....). It is (this is the closest approximation i can come up with) a mixture of an rc-file with a start/stop-script and some redirection along with a bit of cron-functionality.

bakunin
# 6  
Old 09-25-2017
Hi.

Maybe yes, maybe no, just sayin':
Quote:
...
1. Complete Solution

UV Software's JCL Converter provides a complete solution for migrating mainframe JCL to Korn or Bash shell scripts. It provides much more than just converting the JCL statements to equivalent shell script statements.

The JCL converter handles over 40 IBM and 3rd party utilities, such as: DFSORT,SYNCSORT,ADRDSSU,FTP,IDCAMS,IEBCOPY,IEBGENER,ICEGENER,ICETOOL, IKJEFT01,DSNTIAUL,DSNUTILB,DFSRRC00,ADUUMAIN,AMUUMAIN,EZTPA00,QUIKJOB,etc. See 12 samples of JCL/script conversions begining at JCLcnv1demo.doc JCL demo conversions [libcnv].

2. Native Shell Scripts

Mainframe JCL is converted to native Unix/Linux Korn or Bash shell scripts, which is much more powerful solution than the JCL emulations provided by some other vendors.

...
Note the dozen samples. See more at UV_Software_JCL_Conversion_Advantages

Best wishes ... cheers, drl
This User Gave Thanks to drl For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Can we execute Mainframe JCL thru UNIX

Hi, can we execute mainframe jcl in Unix system. I want to run jcl in unix instead of mainframe. Thanks in advance. Please post in an adequate forum! (6 Replies)
Discussion started by: Rajeev Das
6 Replies

2. UNIX for Dummies Questions & Answers

Conversion of flat file to Mainframe file

Hi guys, I have a flat file created by ETL tool. Now the flat file has 4 columns. 1st column is a Character(17), 2nd Column Character(4), 3rd column is a decimal column and 4th column is also a decimal column. I have to convert this file into a Mainframe file in the following format. ... (4 Replies)
Discussion started by: mac4rfree
4 Replies

3. Shell Programming and Scripting

pass null value to sql script from korn shell script

There are 4 parameters that I have to pass from korn shell to sql script. 1) I have to check if $1 , $2 , $3 and $4 are null values or not . How can I do that ? 2) Once its determined that these values are null (in the sense they are empty) how can I pass null values to sql script... (11 Replies)
Discussion started by: megha2525
11 Replies

4. Shell Programming and Scripting

shell script returning error code 2 from AIX to Mainframe

Hi, I have a shell script which is residing on AIX which is triggered by Mainframe through Connect Direct. The shell script creates several files and sends those files to mainframe using Connect Direct. The shell script is working fine, still it is returning exit code 2 to mainframe. What... (0 Replies)
Discussion started by: Yogesh Aggarwal
0 Replies

5. Homework & Coursework Questions

Korn Shell Script

1. The problem statement, all variables and given/known data: Write a korn shell script with an alfanumeric string as argument. The script lists the file's names in the current directory that contain the given string as substring and that can be read and written. 2. Relevant commands, code,... (3 Replies)
Discussion started by: burm
3 Replies

6. Shell Programming and Scripting

Korn Shell Script

I have to solve some exercises in Korn Shell, but i'm having some problems. For example: Write a korn shell script with an alfanumeric string as argument. The script lists the file's names in the current directory that contain the given string as substring and that can be read and written. I... (3 Replies)
Discussion started by: burm
3 Replies

7. Shell Programming and Scripting

Korn Shell script not running

I am sorry, this is really trivial, yet I am not able to understand what the problem is! I am using korn shell and running this script #!/bin/ksh keep=3 while ; do echo $keep keep=$(($keep-1)) done I am getting this error: `keep=$' unexpected I am not able to understand it because ... (1 Reply)
Discussion started by: Asty
1 Replies

8. AIX

Help with Korn Shell script

I have this Korn shell script that runs via a cron entry. It runs in a loop "watching" a specific file system for files with a certain name. The file system that it is watching is an upload file system for an FTP server. When files that are the correct name come in, it takes the extension of the... (1 Reply)
Discussion started by: heprox
1 Replies

9. UNIX Desktop Questions & Answers

korn shell script

hi all i am writing the korn shell script. i have a SQL script which gives me the folowing output DSA.WLG.20050713211544.20051025.20050713211544 28991 1130198400 DSA.WLG.20050713211544.20051025.20050713211544 25881 1130198400 DSA.WLG.20050711210100.20051025.20050711210100 25881 ... (3 Replies)
Discussion started by: pavan_test
3 Replies

10. UNIX for Dummies Questions & Answers

korn shell script

hello., i have 2 files.. 1 file is in this folder /home/test/ssk/DSA.WLG.20050713211544.20050710.20050713211544 (this part) other file is in this folder /home/kk/dev/DSA.WLG.20050711210100.20050710.20050711210100 ... (1 Reply)
Discussion started by: pavan_test
1 Replies
Login or Register to Ask a Question