Saturday, December 20, 2008

Best of 2008. The best articles of 2008 from web, health, entertainment etc

10 Miraculous Health Benefits of Honey and Cinnamon Combo

10 (Updated) Exotic and Healthy Juice Recipes

10 Life Changing Websites and Best RSS Feeds

Strange and Unbelievable Facts That You Never Knew

50 Perfect Gift Ideas for Anyone Anytime

Best Origami Sites

10 Google Chrome Keyboard Shortcuts

Life in a Nutshell

21 Tips to Select Fresh Fruits and Vegetables

10 Sureshot Ways to Retain or Regain Youthful Look

10 Essential Google Search Tips & Valuable Tricks (for Smarter Surfers)

Five Simple Yoga You Can Do at Office or During Travel

Are You a Smart Surfer?

10 Free Web Tools

10 Cocktails for an Out-of-this-world Experience

Two Exotic and Healthy Banana Puddings

Natural Yummy Vitamin Sources for Your Health

Amazing Facts About Pearl Hunting

10 Cooking Tips Using Your Microwave Oven

Four Less Known Health Benefits of Chocolate

Are You a Metrosexual?

How to Do Speed Squaring Using Vedic Mathematics

Eight Extremely Cool Useful Websites You Should Never Miss Out

Exercise Your Brain: Learn Morse Code

10 Shockingly Bizarre Medicines Used by Our Ancestors

 

Six Crazy But Interesting Videos Online

Universal Fast and Furious Tokyo Drift Fight Scene

Five Fun Online Games for a Razor Sharp Brain

Five Next Generation RSS Tools for the Smart Surfer

How Not To Be a Millionaire

Like It or Not: Six Google Trends That Don't Lie

Four Most Popular UFO Videos on the Internet

11 Websites To Guide You To Better Relationships

Love and Love Only

Valentines Day Flowers and What They Signify

Tuesday, November 25, 2008

Cylinder to GB space calculation

1 Cylinder = 55,996 * 15 = 839,940 bytes.

so 1000 cylinders = 839,940 * 1000

1 Megabyte = 1,048,576 (2 to the 20th power) bytes.

1000 cylinders = (839,940 * 1000 ) / 1,048,576 = 801.029 MB

1 terabyte = 2 to the 40th power or approximately a thousand billion bytes (that is, a thousand gigabytes).

1000 cylinders = (839,940 * 1000 ) / (1,048,576 * 1,048,576 ) = .000763 Terabytes

Saturday, September 20, 2008

Batch JCL to FTP

//FTP00001 EXEC PGM=IKJEFT01,DYNAMNBR=50
//OUT DD SYSOUT=*
//AMSDUMP DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSPRINT DD DUMMY
//OUTPUT DD SYSOUT=*
//INPUT DD *
IP Address
Userid
password
pwd
ascii
Your Pc Path
pwd
GET 'YOUR.MAINFRAM.FILE' YOUR_PC_FILE.TXT
QUIT
/*
//SYSTSIN DD *
FTP (EXIT
/*

JCL TO FTP FROM TEST SITE TO PRODUCTION

//STEP0100 EXEC PGM=FTP
//SYSPRINT DD SYSOUT=*
//INPUT DD *
ip addr of prod datacenter
userid
password
LOCSITE LRECL=nnn
LOCSITE BLKSIZE=nnnnn
LOCSITE RECFM=FB
PUT 'your test ftp file' 'your prod ftp file'
//OUTUT DD SYSOUT=*
//*

Here is a simple rexx exec to find the ip address

Code:

/* REXX */
PARSE VALUE SOCKET('INITIALIZE', 'TEST') WITH RC . . SERVER
PARSE VALUE SOCKET('GETHOSTID') WITH RC IP
SAY IP
EXIT

How to transfer a dataset from mainframe to PC thru FTP ?

How to transfer a dataset from mainframe to PC thru FTP ?

1) Find the IP address of the mainframe system you are transmitting from.
Go ot ISPF option 6(command)
- type PING DIPN then hit ENTER
- Look for a message like the one below to find the IP address
148.171.100.2

2) Go to a DOS Prompt (COMMAND PROMPT in WINDOWS 2000) on your PC
- Type FTP then hit ENTER
- Type OPEN 148.171.100.2(i.e ip_address)
- Hit ENTER
- Enter your TSO ID and PASSWORD
- Enter the RECV command to receive the mainframe file down to your PC
RECV 'WXX262.SE.SED103.SE585.NEW' c:\temp\yourfile.txt
- Type CLOSE and hit ENTER
- Type BYE then hit ENTER to exit