<jupyter_start><jupyter_text>Retrieve job resultsThis guide shows you how to view final job results after running a job. Before you beginThroughout this guide we will assume that you have set the job you want to retrieve results as variable `job` by any of the following methods:1. [run a job using QiskitRuntimeService.run().](run_a_job.ipynb)2. retrieve a job that has been ran before.We will retrieve an old job with job id in this guide. (Hidden cell)TODO: link to how to retrieve job<jupyter_code>from qiskit_ibm_runtime import QiskitRuntimeService

service = QiskitRuntimeService()

# Replace with your own job id
job = service.job(job_id='c9toiikmmabqh8vm2iag')<jupyter_output><empty_output><jupyter_text>Check job statusYou can only retrieve job results afer the job has been completed. To check the job status, you can run:<jupyter_code>job.status()<jupyter_output><empty_output><jupyter_text>If it returns ``, the job has been completed and you can proceed to retrieve job results. Retrieve job resultsYou can retrieve job results using:<jupyter_code>job.result()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.0643699002719855, 'fraction_numerical': 0.004533091568449683, 'mean_word_length': 6.2631578947368425, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '563595', 'license': 'Apache-2.0', 'n_tokens_mistral': 332, 'n_tokens_neox': 328, 'n_words': 133, 'path': 'docs/how_to/retrieve_job_results.ipynb', 'repo_name': 'rathishcholarajan/qiskit-ibm-runtime', 'size': '1103'}